Hospitals have managers and policies. They are more than simply buildings. if the doctors don’t follow the policies, they are denied the right to treat patients in that hospital.
Just buildings-pfffft.
Yes there are policies. The medical board, the administrator, and both federal and state governments influence those policies