You’re not overthinking, you’re just... thinking, and that’s perfectly reasonable. However, neither were the university authorities underthinking it when they decided to set up a gym that’s open to a mixed crowd of students and faculty. Nor were they underthinking things when they wrote the faculty code of conduct (or whatever the equivalent thing is called at your institution) and did not include a prohibition on faculty using a recreational facility used by students.
The reality is that there’s a false premise floating around — a pernicious belief about professors that pops up every now and then and seems hard to shake, even for people who are themselves professors — that professors are some kind of special breed of humans, or a caste of high priests that need to set themselves apart from the rest of society. We’ve seen this come up on this site in questions about professors swimming, using dating apps and doing other completely normal and mundane activities that no other person will ever think of asking for permission to go about doing.
Well, we need to be very clear about this. This belief is completely and utterly false. Professors are ordinary humans and when they are not at work they like to do the exact same activities as everyone else does. They go to the gym, they date, they swim, they eat the same food, shop for the same groceries, etc, and they have naked bodies just like everyone else does, which they sometimes expose in (gender-segregated) showers at local gyms just like everyone else does. Anybody who has a problem with their professor doing those things needs to simply get over it.
I do understand (from experience) that for a professor in a small town you don’t necessarily always want to have a chance of running into your students everywhere you go about your daily life outside of work. If you personally prefer to work out and shower at a gym where that’s not likely to happen, that’s perfectly reasonable and fine. The point is, you should choose which gym you go to based on your own personal preference and convenience, not because of second-guessing how your students might feel about seeing you, or because of feeling hamstrung by some perceived social taboo against professors mingling with the rest of society. If such a taboo ever really existed at all, it was in some long bygone era, and the perception that remains today is simply an anachronistic vestige of those days. We need to let this misguided notion die.
TL;DR: professors are people.