I think there are certain ‘triggers’ that catch men’s eye. Long flowing hair, especially it is blonde, hourglass figures, or visible breasts, bubble bum, long or shapely legs. Then there’s the flirty, extroverted demeanour- seeming bright and sparky and keen on attention, smiley and making eye contact - like Barbara Windsor in the Carry On films.
These things catch attention.
Then there’s doing certain things - jogging, riding a bike, dancing, that draw attention - especially if they cause any ‘jiggle’.
There’s also the thing of being a lone female in an isolated place. Lots of weird men see this as an invitation.
If you’ve never dressed in such a way that emphasises your curves (and aren’t especially curvy), always had short hair, or hair tied back, if you’ve never been jogging through the streets, ridden a bike much, or never been way off the beaten path by yourself and you have an unflirty, slightly forbidding demeanour, then that’s the only way I can imagine you would have escaped harassment.