When the hospital charges you $37 for an aspirin, that singular pill might have a crazy profit margin in isolation. But your entire treatment could very well be losing the hospital money.
In my own anecdotal experience, the one hospital I know enough details about to comment on specifically, had something like 85% of patients costing the hospital more money than the hospital made. It was entirely funded by the relatively small number of people who had the “right” insurance and had the “right” procedures done.
Eg Kaufman: https://www.vizient.com/insights/reports/national-hospital-f...