I think the term "non-profit" or "not-for-profit" is misleading when it comes to health care at least. These entities absolutely make a profit, it is all in what is done with that profit. The non-profits plow their profits back into building new facilities, improving existing facilities, adding technology, etc. rather than paying out a stock dividend. But make a profit they do, and it is substantial.
For example, in Colorado Springs there is a city owned hospital that operated for a long time as a successful venture. Then one year some misguided people got an initiative on the ballot to force the city to sell it because, while it had operated in the black for years, it might become less successful and become a tax burden. The initiative passed but fortunately some legal folks put the brakes on it because it turned out that the original land deed and founding money required that it always remained city property, was always to be dedicated to healthcare, and had to remain non-profit. To satisfy the "let's get rid of it" folks the city leased the building(s) to the UCHealth system, a "non-profit" under the auspices of the University of Colorado. Since then UC Health has added 3 Urgent Care, 5 Primary Care, 7 Medical buildings, 1 new Hospital, and 1 stand alone Emergency Room to its portfolio. I daresay this was not all done with donations and grants.