A lot of people in my life have had their feelings hurt when their “work friend” stopped talking to them after leaving the company, because they failed to understand this important truth.
But, we are talking about someone who need coercion to make friends. And they can be nice super ethical person, but there is that skill they don't have.
Most of them are from outside work. Because "but you spend 8 hours with them every day" is not true for most people. I now work with completely different people than I those I worked 3-4-10 years ago. I have friendships significantly longer than that, and I didn't have to work with them side by side all this time.
But... I no longer "spend 8 hours in the office with them". I spend 8 hours in the office with a completely different set of people.
See? Your friends will inevitably be outside the office life.
The best friend I've made as an adult was met through work. Then he took another job, and I moved across the country when I went remote. We still keep in touch and occasionally travel to visit each other.