They can be, and they also often have bars that are just as social as a bar-as-distinct-venue.
Organize a big dinner between two distinct social groups with only one or two linkages. In my case, my coworker was dating my future spouse's coworker. Very different companies. Those two arranged a dinner so their friends could meet. We had the big room at the Clay Pit in Austin where it's possible to hold a cross-table conversation.
Don't sit near only people you know. Don't talk in-jokes with the people you already know. As dinner's wrapping up see if anyone wants to go dancing or whatever. Anyone with mutual eyes on each other will definitely continue to hang out into the evening. And it's easy to ask someone to dance or hang out again at that point because you just spent hours with them at dinner.
Unfortunately it’s difficult enough to get one together now. Particularly after Covid it seems no one wants to do anything anymore.
Bars, make a little more sense. Bars are designed in a way that you’re in close proximity to other people (often strangers) and also probably a bit more amenable to be friendly with said strangers thanks to alcohol.
But how do you meet your spouse at restaurants? Restaurants aren’t very social places.