When you are paying for drugs, you must remember that you are NOT paying just for the manufacturing costs, rather you are also paying for the intellectual property of all of the researchers (many with doctorates having 20+ years of schooling) that went into developing the drug. 90% of the compounds studied never make it to market; either failing in the development lab or failing in the clinical trials. So in order to recoup all of the development costs, the companies need to charge much more than its production costs (or sacrifice research into the new medicines of the future). Furthermore, companies need to acquire patents on promising drugs to give them a little "breathing room" before generic companies can take up the manufacturing of the drugs and sell them much closer to production costs; unfortunately the patents are acquired usually before even the clinical trials, meaning that by the time the drugs are finally brought out to the market, much of that time under the patent has already passed causing their prices to be even higher in order to recoup their research / development expenses.
In the tech industry, people don't complain when the bleeding-edge technology costs much more than the average consumer can pay for. How many people are going to run out and purchase a
$40K 4K smart TV? Very few; the customers know that eventually the costs will drop to a more affordable range. However in the healthcare / pharmaceutical industry people want / need the bleeding-edge technology, yet don't want to pay the high costs required to develop them. (note, the ad-link for the TV was selected as an example; I do not get any $ from this)