This doesn't make sense. There are countless opportunities for social interaction. Join a church, a club, a sports league, a gaming discord. I get that there's a lot of friction involved in joining anything, and many 'lonely young men' don't want to put forth that effort. But it's definitely less total effort than forcing people to come to an office for the purpose of social stimulation. Just measured in terms of time and fuel spent commuting by each person, it isn't even close.
I think there are a lot of reasons that people prefer offices. Most of it is probably tradition and "that's the way we've always done things". If the reason is truly lonely people needing social interaction, then there are a lot of way better solutions.