Most hospitals are non-profit

In the United States, most hospitals are non-profit, while nearly all pharmaceutical companies are for profit. Can you offer an explanation based on the consumer shopping problem?