This doesn’t happen with socialised healthcare that’s free at the point of service.
A government can negotiate lower prices than a commercial entity. They also can legislate to force bad actors to be reasonable.
Sadly the UK’s NHS is being slowly converted to the USAs fundamentally broken system of “what the market can bear”.
Rampant capitalism didn’t work for the banks either. They needed a social bailout when their markets crashed.