Since when is complimenting someone considered hitting on them / harassment?

Oh, I didn’t see the rest. I got triggered.