To be fair, when the internet first came out there were a bunch of pervs who made hidden cam locker room videos in university gyms, recorded wrestling weighins, etc and put it all out there without people's consent. That wasn't something our generation had to worry about. Most of that stuff got shut down, but the fear remains. I'm fine being naked in the locker room, but I admit I'd be mortified if footage of me leaked out. When that influencer got banned for her locker room selfie where she shamed a fat woman behind her, i cringed.
But basically "locker room predator scare" is the current "razor blades in Halloween candy" fear that persists despite not really being a thing. But stupid gym bros on TikTok keep it alive.