It's one thing when it's a little kid, but even some of them need to be reprimanded. It's quite another when some creepy guy is really obviously perving. Since most of us on this forum have more of a diver, we can tell the difference between a diver practicing statics and a weird floppy squidlike swimmer.
Discrimination... I think they just don't know any better. In some cases, it may be wise to tell the lifeguard what you're up to before you start practicing. It's likely that many of them have never heard of freedive training. Besides, how often do you see women blatantly wearing snorkel gear and checking out the men? I really don't know; that's why I ask

.