Only recently can people access "the world" goods. In the past there was limited range to provision from outside. Mostly boats and carriages. Famines could then occur because of a bad harvest or a few in a row. Farming has never been a surefire thing!
I think that is the point of the comment you're responding to?
As far back as the Irish potato famine, there was plenty of food - the problem was caused by the political power structures and rent seeking which would not bend an inch to help the peasantry.
In the modern era, we have more then enough food to feed everyone: no one goes hungry because there is not enough.
ever? The first entry in the wikipedia article for "list of famines" points to "4.2-kiloyear event", which was apparently global. At that scale it doesn't seem hard for the deficit to negate any meager surplus that non-affected societies can produce.