I live in an area where many foreigners come to work., and I've asked some where they come from. I didn't get accused of racism for doing so.
In Thailand when on a baht bus I've asked tourists where they were from and non gave me evasive replies, and none took offense.
Certainly, I don't take offense when asked where I'm from, but I don't have an agenda, and nor have I accused Charles of being mean to Harry's wife.
Bottom line, it's all great publicity for a certain charity.