You don't necessarily. Optional WFH or coworking arrangements let you come into the office if you prefer to, but let people who would rather WFH do so if they prefer to. They were pretty common even during the pandemic, eg. in my time in the startup scene probably 70-80% of founders worked out of a coworking office instead of their home.