Followed through a grocery store by a guy repeatedly saying “nice ass”. I was too embarrassed to say anything and I really regret it now. Why is this behaviour considered okay?

Followed through a grocery store by a guy repeatedly saying “nice ass”. I was too embarrassed to say anything and I really regret it now. Why is this behaviour considered okay?