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.
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.