South Africa was no “very productive economy”. The engine behind the “very productive economy” country was (almost) free labor.
People always fail to take that detail into account..
You should also remember that resources went to whites mostly during apartheid. That means around 1/5th of the population…
Fixing inequality is really hard