There are a lot of reasons. Blaming any one cause is myopic.
One of the causes is that the free market system doesn't work when the buyer isn't paying. Here is a great example of manipulation of the consumer and insurance companies by drug companies - just one example of how one player in the game is running the cost up:
Drug Coupons Hide True Costs From Consumers : NPR