The particular point you are clueless on is the difference between SELLING a drug and DEVELOPING a drug.
Once a drug is developed, it can be profitable to sell it for a low price. The development cost is sunk, after all, and as long as the sale is for more than the manufacturing cost, the drug maker comes out ahead on the margin. Better to get some money out of Lower Slobovia than none at all.
But for a drug to be profitable to DEVELOP, the development cost needs to be recouped as well. And not just the development cost for that drug, but the costs for the huge number of drug candidates that flamed out during the development process and never led to the marketable drug.
If drug makers could not recoup development costs, they would stop spending the money to develop new drugs.
- - - Updated - - -
Sounds like you haven't a fricking clue about how drug development actually works.