Xenophobia, racism, whatever.
Some African countries like Botswana, Kenya, Senegal and now Rwanda and Ethiopia are increasing in wealth.
Having natural resources doesn’t necessarily make a country rich - it’s how you manage it and the institutions you have (rule of law, right to property etc.)