Pharmaceutical companies, hospitals, and doctors are free to charge by the medicine, by the night, and by the minute.
For example, this place does it:
https://surgerycenterok.com/surgery-prices/
Insurance companies do not force the sellers to use complex billing practices, they would benefit from more transparent pricing (since they are seeking to pay less).
The root cause is healthcare is inherently complicated and complex, it has a problem of supply being nowhere near demand, and since prices for things are so high (including liability), there is a lot of cover your ass and fraud prevention going on.
Insurance companies absolutely benefit from the higher and opaque prices, because they negotiate rebates with providers. This allows them to maximize patient copays and ensures they hit their deductible, i.e. paying as much as possible under their respective insurance plans. Contrast this with a no-rebate world with cheaper/more transparent pricing. Fewer patients would hit their out of pocket maximum.
They can use the rebates they get from the providers to subsidize the insured, allowing them to offer lower premiums and gain market share. This is what people mean when they say "In America, the sick people pay to subsidize the health care of the healthy people".
Of course, that above only applies if there is competitive pressure. If there is no competitive pressure (e.g. in states with only one or two insurers), they can keep premiums high and book as profit the difference between what the patient paid out and what the patient would have paid out in a lower-cost no-rebate world.
Pharmaceutical companies, hospitals, and doctors are free to charge like that. But if I'm using insurance, it's irrelevant; that's the price to the insurer. It's the insurance company who determines the price I pay, using whatever arcane rituals they've chosen.
Don’t do pro bono PR for those companies. Healthcare isn’t so complicated that every other country in the world hasn’t been able to solve it for significantly less money and far less stress for users, not to mention better health outcomes in most cases.