Hospitals shouldn't be "making money" directly. They are there to heal people. A healed worker is an indirect gain to the economy. Good care and good prevention mean a stronger, fitter, and more productive society.
I bet that the better the care a hospital provides, the less recurring patients it will have and the quicker it will be able to release patients.
Dunno where you're from, but insurances are also partially to blame for this. They limit patient appointments to a few minutes and any minute above that is out of the doctor's pocket.