I neither speak nor write nor read Chinese, but someone explained to me that those names are simply rough phonetic approximations. They decided to go with words that weren't offensive, but sound like the country's names, because that's the polite thing to do.
I'd love for someone who actually knows what they're talking about to chime in, though!