This explains some things:
Basically, quoting Justin J Lehmiller, “It’s adaptive for men to error on the side of over- rather than under-perceiving women’s sexual interest.” There is little to lose and something to gain by misperceiving friendliness or politeness as sexual interest. Hence it may have become hard-wired into human males.
Update: This is not to say this justifies men being aggressive, in any form, toward women. Men need to realize it is easy for them to make erroneous conclusions and women need to realize they may sometimes need to be “less than subtle” in their communication with men.