My company is complete work from home. The issue is that people can't imagine coworkers talking to each other and being friends while working remotely.
I spend half of most days in spontaneous voice chats with coworkers where we have these exact same moments. Spontaneous discussions leading to ideas that change the way we do things.
It's not exclusive to being in an office. You just need to adapt to a new work style.