Yes, absolutely it's bad they're throwing it out. No debate there. But it's not like they can ship it somewhere else without it costing more than the food itself.
The solution is better understanding of who needs what and try to fill them as close as you can without going over too much. That will optimize usage of a product.