Actually the Chinese language had offensive connotations since ancient times. They called Japanese midgets, southeast asians reptiles, and other foreigners as dogs or insects, in their characters, and westerners demons. I could list it.
But this one is not actually 'offensive', just off-color. But obviously in direct translation it seems racist, but it's more like saying 'swarthy' rather than true black.