You're conflating the cost of manufacturing with all the other costs of operating a pharma company. R&D, legal, marketing, accounting. It's way easier and cheaper to sell something that someone else designed. That's not to say it isn't overpriced but it's not that simple.