The change that pregnant women are allowed to have one support person in labor and delivery or two in pediatric settings as long as it is one at a time, is due to the notion that this is necessary for patient care. However, the policies of no visitors are to ensure protection for mothers and their children.
https://thecity.nyc/2020/03/state-says-hospitals-must-allow-one-support-person-at-births.html