Many years ago (like 7 or 8) I used to manage the local food handouts. Every item we gave out was donated by stores and was past their expiry dates.
We had to introduce mandatory doctor’s notes for those with allergies and celiac, because we just couldn’t deal with the intolerants anymore.