I think picking up people at the bar is easier than making friends at the gym - what you want is to join a crossfit gym, or something that has a stronger community culture to it. Not the gym.
i think this can also depend on location. I live in a military town and have been a powerlifter for several years, i routinely have men come up to ask about my routine. a handful of times its turned into real friendships.
I have a ton of "gym friends." And this is a commercial gym. We know each other's names, will help out with spots, have small conversations. None of those have yet led to hanging out outside the gym, but if you go to the gym at the same time every day, you're bound to at least start to recognize people, and it's really easy to say, hey I've seen you around a lot, my name is...
Bars are a common place, but do you really want to meet the type of person who hangs out in a bar? Sure if you only want a one night stand what they do with the rest of their life doesn't matter. However if you want a relationship you probably don't want to start with a high odds of finding a borderline alcoholic.
Second this. CrossFit is fantastic for community. Not so sure about my knees though!
But I hear that with Gen Z and Alpha they dont really go to bars but they do tend to go to the gym, and so the gym is becoming a more social space. So maybe OP is on the right track?
https://www.theguardian.com/society/2025/may/15/why-gym-plac...