That's true. But it's the old saying - it might take $100 million to make that first pill and then only a penny every pill afterwards. And then they have to have another $100 Million to make the next "first pill".
There's a balance that has to be found between making sure that there is an impetus to make those pills and a way for those that need them to get them. How to achieve that balance, I don't know... I mean, we can't just let people that need them to die if they aren't rich enough. That'd be entirely unacceptable. But we also need to make sure that there is a reason for those pills to be created in the first place... And without a tidy profit that reason stops existing at the level it does now (And I certainly don't want to slow down advances in medicine just to reduce the price of it).