Some people prefer offices, others not. My employer gave us the option of where we work, and it's been working out very well. About 5% chose to be in the office, another 10-15% are hybrid, the rest are fully remote. With proper support from management, it works great.
Humans are social creatures. As much as I'm a massive friggin' introvert, if I stayed at home I wouldn't get anything done. I need to go to the office and see other people, in a work environment, in order to work myself.
And at five o'clock, I need to get in my car and come home.
Also an introvert; switching to working remotely vastly improved my social life (and productivity at work). When I was going to the office, I was burning all my social energy during the day and defaulted to hermit mode on nights and weekends to recharge.
Now I’m sitting on my social charger all day while I’m working and actually have the energy to hang out with my friends outside of work hours.
Aren’t there laws against that? In industries where extended contiguous days are required, they get both overtime and a regular extended block of time off in most places.