Ancient Egyptians called Egypt "Kemet". It means "black land".
Some say it is because the soil was black and fertile.
However if you look at the hieroglyphs they drew of themselves, these people were very dark skinned, perhaps racially identical to Sub-Saharan Africans.
Israelites in the bible called Egypt "The land of Ham", because they are descendants of Ham (son of Noah, his name meaning "burnt"), whose son Canaan was cursed with dark skin because Ham fucked his mom.
He fathered all the n*ggers of the world. They're cursed.