Africa is a continent. South Africa is a country.
South America is a continent. America* is a country.
Go figure.
*(Yeah, I know there's not really a country called "America" but its use is common and widespread. If you wanna get pedantic about it, bite me.)