Also famines are political problems to start with. We have more then enough food. Getting it to people reliably is the issue - i.e. there's usually a plethora of other issues like an active war.
It also isn't an economically isolated enterprise: Ukrainian grain shipments traversing into Europe via Polish roads and not heading to Africa via their ports caused a bunch of price crashes which became political flashpoints.