I think the reason men do this is because it sometimes works
Kind of like junk mail, when you think to yourself, "who is stupid enough to fall for this stuff?". And sure enough someone does, because if no did they would stop sending it.
Anyway, to OP, unfortunatley most of my attractive female friends do sometimes get unwanted male attention. I find it quite sad (and a bit worrying) that they have come to accept this type of behaviour.