In a perfect world, none of this would happen. In a perfect world, you could tell a woman she’s hot and she would smile and say thank you because there would be no millenia-long history of women’s bodies being used and abused by men, no notion of women’s beauty as being “for” men, no ridiculous beauty standards. Complimenting a woman on her appearance would be just like complimenting a person on their bike or their shoes or the color of their hair; it would not carry all the baggage that it carries in this world.
But that’s not our world, and it may never be. Yeah, it sucks that women often take it “the wrong way” when you give them unsolicited compliments. You know what sucks more? Yup, patriarchy.