Most hospitals run at profit margins well below 10%. Median operating margins are in the vicinity of 2% (https://www.modernhealthcare.com/providers/operating-margins...) And for the last few years, expenses have been growing faster than revenues (though the rate of growth of expenses has slowed.)
Whatever you imagine they're bringing in, they're not.
Nor is their job to maintain the long-term health of the country. That's literally the government's job.
[1] Those numbers have a historical reason behind them, which people are either ignorant of or choose to ignore. The short version is: hospital prices are set as a part of the negotiations with insurers. Insurers account for the vast, vast majority of dollars going into hospitals, so their business operations are built completely and entirely around insurance dollars. Uninsured patients register as barely more than a rounding error. So while, yes, being uninsured in this context sucks, hospitals aren't gleefully rubbing their hands and going "muahaha, $5K for stitches!" They don't expect to see that 5K, they don't rely on that 5K, and they're not trying to gouge that uninsured person who's almost certainly not good for that 5K. That person has just fallen into the crack(s) in our healthcare system, which are more complicated than "evil greedy hospital", or "evil greedy insurer."