The funny part: for my friend, who also had a strong accent, it was odd (and not very nice) if someone didn't ever ask about where's he from -- because he was obviously an immigrant.
Just telling this story because something that can possibly be interpreted as 'racism' is 'basic niceness/politeness' for someone else. If we're celebrating diversity then let's embrace it properly.
Thank you for your wisdom. I have been saying something along these lines for a long time, but never so eloquently.
Why is there a rule all of a sudden? Why did I not get the memo? Why was it okay for others to ask me but not me someone else? Is there a special exception for this person? Is this a national culture thing? Can I fix this? I didn't mean to offend but I did!
That's what would go on in my head. I don't think that's unreasonable. If you want people to conform to your social or cultural norms, you need to explain them first.
And as is mentioned in the comments, assume good faith first. Educate instead of judge. Live and let live. Was there harm done by the question?
However, pleading ignorance on rascism or sexism does not hold water. You may think racism or sexism is normal, but if I allow you to claim ignorance, then I implicitly tolerate that behaviour. Tolerating such behaviours can destroy a community, and past experience has taught me to call them out as soon as I see them if you want the community to benefit long term.