What happens to the expired food in grocery stores if they don't sell?

I see a lot of fruits and vegetables just sitting there in my nearby grocery store. Milk also expires pretty quickly.

But what happens to them when they're past the expiration date (or when they get too rotten)? Does the store just throw them away? It seems like a waste of food to me.
7 answers 7