Encounter a few hundred random men in the street and at least one is going to hit on you. Always.
I also guarantee a great deal of the harassment would be seen as welcome flirting if it came from an attractive man. If the guy is unattractive, he is automatically labeled a “creeper” before he even opens his mouth.
Well, as a man you have my sincere apologies that some men are pigs. Some of us aren’t, or at least not that variety.