North Africa used to be very developed (I.e. in the Roman era). What went wrong? It is clearly less developed than Europe, even though it appears to have been on a similar trajectory all those years ago.
We have several answers to similar questions in our FAQ, if that's of interest: https://www.reddit.com/r/AskHistorians/wiki/africa#wiki_why_is_africa_.22less_developed.22.3F