My kids are in their teens, and the hospital maintained visiting hours on the maternity ward back then (the labour ward was obviously different). Part of the reason for that was to try to maintain some semblance of routine for those staying in.You would think hospitals would be glad that fathers, or other relatives of women who have just given birth, are there to provide help
I'd be cautious about assuming a direct connection between Covid and that policy - or the appalling care provided by that hospital.