You clearly have not realized the sheer amount of food that stores throw away because it wasn’t purchased. Not because it wasn’t edible, but because it didn’t turn X profit in Y time. Dumpsters are secured and food often deliberately made inedible. Very little is ever simply donated because that would call capitalism into serious question.
https://youtu.be/HGyw5eWRFoM?feature=shared