Yeah, but a lot of those were wigs made from their hair after shaving it all all.
And, of course I'm not saying that ALL Africans or even EVERYONE in Kemet, shaved their heads, but, there were African cultures, some in Kemet, being one that viewed hair as being essentially unclean.
But, I'm sure that view also came primarily out of African cultures that live [or at a time when they lived] in very close proximity to nature.
But, many African cultures and beliefs are those that derived out of the philosophies, beliefs and traditions of Kemet/Nubia, [at least before Islamic, "Christian", Western conquests/influence] which were merely passed down through generations, generations that, through migration [and fleeing invaders] have wound up far, far away from Kemet, settling in other parts of Africa, some as far away as South Africa.
I'm merely giving examples of [some] African views about hair that are/were opposite that of Western, [and Islamic] views about hair.