It also probably helps that by the time patients are hospitalized they're likely past their most contagious point.
Having said that, I've been going to a hospital twice a week for the past few months for allergy shots, and everyone is strictly masked and distanced. Two examples of strictness details: nurses will open and close doors for me so I don't have to touch them. And once they had me take an allergy medication before getting my shot, and the nurse actually left the room while I had my mask off taking the pill.
Having said that, I go running in my neighborhood, usually through part of the campus of a (different) hospital. I regularly see people in scrubs with hospital IDs walking to the parking lot (within a few feet of me if I didn't avoid them) with their masks pulled down off their faces.
So seems there's quite a bit of variation.
Which is why I stopped wearing a seatbelt.
People watch what they eat to avoid heart disease and wear seatbelts to prevent dying in car accidents. Why not wear PPE to prevent COVID-19?
PPE reduces transmission. It doesn't stop it.