At least in the US, many doctors (at least specialists) split off and created their own companies that then contract with the hospitals.

A large chunk of people working in healthcare are all contractors, now, with all the overhead and friction that comes with that.

The only true employees of most hospital systems are the finance people.

Indeed, and something else many people don't know is that a lot of (mid to senior) doctors have ownership stake in the hospitals, or are part-owners of the building that the hospital leases, etc. So it's not a direct "owernship" relationship anymore, it's more like a stockholder who works (contracts) for the company, sometimes with a hop or two in the way. I'm not saying this is good or bad (it doesn't seem at all clear cut either way to me), but it is something I found really interesting

A lot of that is to get around laws that say corporations can't practice medicine. These are state-laws, not federal so in every state it's different.

and facilities, cops, 'environmental services' etc.

Hospitals employ plenty of people to keep the machine running. No one wants a localized rainstorm in a surgery bay.