The problem with wanting to help the needy is often discerning who they really are. My mother was the manager of an Oxfam shop for over twenty years, and she has a wealth of stories about people who went to great lengths to avoid paying for goods in the shop.
On one occasion she caught a man trying to walk out wearing a leather jacket from the rack - he turned out to be a solicitor with a thriving practice.
You would have no way of knowing that your food gifts were going to those who you wanted to help, and no doubt there would be all kinds of rules and regulations about giving free food to people. My son is a food microbiologist in the supermarket business, and he tells me that they have strict rules about not giving out of date food to charities, even though it might be perfectly good.