For me it's about about a balance of different stimulation levels throughout the day. WFH if you live alone is near constant isolation. WFH if you live with others is near constant exposure to those others. Either of these single-speed lifestyles will wear me down.
When I worked in an open office and lived alone I would sometimes be overstimulated. At least eventually I'd get to go home and recover. A workstation in a library-rules space would have avoided the discomfort altogether though. Eat lunch with my coworkers, have high-bandwidth discussions in meeting rooms, chit-chat when coming up for air by the coffee/snacks/ping-pong, but also be able to retreat to my workstation and focus on code once for the bulk of the day.
Come to think of it, that's what college was like. I would study in the bowels of the library, take breaks in the peripheral food and social spaces where I'd often run into people I knew, and go back to my dorm room at night. That was the life.