There can be a surplus of food while people go hungry.
A centralised determination of how much crop to produce and where it should go is inefficient. Soviet Russia is an example of a country in which food rotted in silos while families starved.
In the US, the government have price controls on agricultural produce under the misguided assumption that it was of the utmost importance to ensure prices never fell too low for farmers’ produce. The price controls meant that during the Great Depression, the government was buying and destroying vast amounts of food while hunger marches were taking place across the country. The intention was to ensure the prices of the produce remained at the officially fixed level. These artificially high food prices meant that many citizens could not afford the food.