Hospitals are terrible at it. Even if you asked the hospital, how much does it cost to take an x-ray? Personnel, capital costs, material costs, everything. Most hospitals couldn’t tell you.
They tend to measure based on service lines. “Our stroke unit is profitable”.
Beyond that, they are pretty hopeless from what I’ve seen.
the healthcare system in the US seems like total chaos to me.
If you asked a Vision Correction clinic or cost metic surgery clinic the same question, I’m sure they could give you an exact answer.
Simpler business model albeit.
Well, yes; in countries with public healthcare, there's still stuff that your coverage doesn't pay for (e.g. voluntary stuff like removing a mole.)
But that uncovered stuff, in those other countries, still tends to be far less expensive than the equivalent service costs at even private "cash only" clinics in the US.
Which is the more reasonable explanation?
A hospital does not tell a patient the cost of an x-ray upfront because:
a) the hospital is terrible at accounting OR
b) the hospital makes a higher profit by withholding or obscuring that information until after the procedure.
Getting estimates of cost for medical procedures is surprisingly difficult and expensive. It takes many people many hours of work to figure out how much a specific set of procedures costs. Bureaucracy also makes the job far harder than it should be, but "moving fast and breaking things" can lead to people dying, so it's understandable why hospitals don't tend to be innovative enterprises. There is value in it, but at the same time hospitals don't have much incentive to lower costs. My job probably only exists because medicare/medicaid bundled payment schemes are finally forcing hospitals to look at costs.
Basically, it's both A and B.
Those guys are typically salaried, and that's likely one unknown.
Another one is the legislatively imposed obligation that they provide [expensive] ER services to anyone who walks in regardless of insurance coverage requiring the hospital to potentially eat up the cost.