Long time ago I used to rent a room in a shared house 5 min walk from work. My housemates were all cool people, but working on a laptop sitting next to the bed I slept in every night would e far worse for me than just going to the office. But this was decades ago. I can understand why someone in such position would prefer an office.
But if you can have a house, and you're mid/senior in your role there is nothing better than wfh.
Also I've recently noticed a disturbing trend. Companies advertising 100% remote work, then you go through the whole recruitment process and at the very end they tell you. BTW, it's not 100% wfh. You gotta come to the office 1 day per month (sometimes even 1 per week). Anyone looking for real wfh job should be aware of such tricks to nip them in the bud early on.