Africa was ahead of Europe developmentally for a way longer period than Europe has been ahead of Africa...
ok, so why when europe turned up where they turned into colonies?
people dont get colonised by people who are not as developed as them.
Didn't the romans rule north Africa so the Mediterranean countries enjoyed the renaissance but the massive desert below that seems to have stopped anything going down to the rest of Africa. Till colonialism. That sounds a bit too simple tbh but invasions and the sharing of knowledge are kind of synonymous.
so that just extends the question to "why did south africa not develop as fast as europe"