I wonder if super markets are allowed to pass on day old bread, nearly over-ripe produce and other non-saleable (but perfectly fine) products to shelters and food banks.
I would be surprised if they do.
Google “Second Harvest” for your answer.
There are also shops in our neighbourhood who will give away veggies and greens “for my rabbit” if you go in with your own bag and ask nicely.