This is just a nieve view. Africa is a diverse and very large continent, with many different lands.
Sure some countries have fantastic and stable agricultural lands, particularly near the equator. Other countries suffer large multi year droughts that can rapidly and negatively impact large populations. These populations then heavily depend on imports, and relief from a country like Ukraine, Russia, or the US that all make easily transportable grain.
The US has had a similar problem during the dust bowl of the 1930s. This is not an African only problem.