It was one of the best countries in the world by almost all measures until the Apartheid government ended.
First class education (CT Scan was invented here)
Space program
Nuclear weapons
1st rate military
High standard of living
World class sports teams
Excellent social programs
Etc etc....
It wasn't always like it is today.