Don’t be ridiculous. Most nations were racially homogenous because populations didn’t move in the same numbers or in the same the way they do until relatively recently. The Aztecs were mostly Aztecs. Europeans were mostly white. Africans were mostly black. When Francisco Pizarro arrived in Peru, he did not have to make their way through Korean eateries, African dancers or errant Scandanavians — it was pretty much all Peruvians.
Sure, there were some empires that had an element of racial mixing, like the Romans — but broadly speaking, most of the time in the ancient world you could tell where someone was from by the colour of their skin.
Not everything you see is an example of racism — sometimes it’s just facts.