My office is half an hour by foot from my house and yet I prefer to work from home exactly for this reason. Maybe in America where the commute can become ridiculous quickly it's a problem but here I just take an e-scooter if I don't want to walk.
A better office would certainly make me come to the office more. But to be fair, even the CEO doesn't have his own office currently so I don't expect any of us to get one soon.