one of the strangest things anyone ever said to me

I was traveling to my in-laws with my son who was a baby at the time. I stopped for a potty break and something to eat. A man in line looks at me and says something nasty to me about being a single teenage mom. I said thanks for the compliment but I’m 27 and married. Being young looking for a long time it gave me tremendous insight on how people treat young women.