I think it’s more about manager capability. A person who manages IT, for example, but has little idea what that entails will want people in the office. They have no idea if a given ticket should take 3 hours or 3 days to resolve, so it’s easier to just have their people in the office where they can look at them and verify that they are, in fact, sitting at a computer.
The ideal work environment for me, and I think most people, is one where you’re judged based on what you do and how well you do it, while details like when you do it and where you are when you do it get left to your discretion. Managing someone like that requires skill and knowledge in what they’re doing though.
I started in IT before switching to development. I have CCNA, A+, and Apple Pro certifications. I run Arch at home, btw. But when I have to contact IT, usually for something that needs elevated permissions or bad hardware, I’m just another user. It’s mildly infuriating to go through all the steps again, even after explaining what I did. I get it, I really do, but it’s not fun at all.