A large number of hospital procedures are likely planned, and can therefore be subject to comparison shopping. Giving birth is an obvious one. But even for many fractures there is a day or two before the procedure, and you could transfer.
Maybe more importantly, public price information allows independent research into price disparities, and public shaming of the worst offenders. That’s data only insurance companies currently have access to.