Well, it doesn't have to cost that much to take care of a heart attack. Remove the AMA from the equation and it'll clear up. The real problem is that we restrict the supply of doctors. Without that, competing hospitals can arise that will compete on price.
Why don't they compete now or why can't you even get a price upfront from them? EDIT: I am responding to a comment that the AMA is the problem. Maybe the AMA is a problem but it has nothing to do with hospitals not competing over prices.
The real crux is that point, the patient is removed from pricing and so the whole market becomes distorted. It’s like going to a store without price tags and complaining that your bill is much higher than you expected.