Emergency rooms and insurance makes a ton of sense for heart attacks. They makes little sense for routine things like cholesterol tests.
Some things are very expensive but also predictable. Like giving birth. Or reparative plastic surgery. Or non-emergency heart surgery. People would shop around for those things as appropriate.