If there is excess food and it is given to people who would not otherwise buy food, there would be no negative effect on prices or the economy in general. Maybe examples of these types of people don't exist in America all that much but they certainly do in the rest of the world.
Your argument only makes sense if the excess food is given to people who can afford it and just want to eat for free.