Because most of Africa is great for solar, while Sweden is not.
Solar is also a great match for countries that need A/C during the day (like Africa), and less so for those that need heating at night (like Sweden).