Of course they shouldn't. But if we had develoepd workplaces that didn't require such rigidity in hours in the first place, many of these problems would disappear.
And increasingly, there ARE workplaces that can and do offer this flexibility. From shifts in preferred start/finish times, to compressed hours, to other types of flexibility.
Sometimes it's more informal - I work with one client currently where there is a sort of presumed assumption that people will do their work so managers are provided with a fair bit of leeway in how they oversee their individual team members' working practices.
This translates differently but, for example, I am aware of a number of parents (men and women) who have informal arrangements whereby they leave early or if WFH, pop out, to facilitate school runs, but those people routinely catch up that time in other ways or on non working days.
One woman within this organisation told me she's had her working pattern changed multiple times as her children hvae grown and their needs have shifted. I know for a fact she's a highly valued member of the team.
Theres also a strong culture within this organisation of needing to do overtime.... but only when encessary. The assumption is everyone leaves promptly at 5. This makes people a lot more willing to Do the overtime when it is genuinely needed.