how does NOT destroying edible food make food more expensive?
They have to deal with less sales and or storing excess inventory.
Let's say you have some bruised bananas. You either have to keep them on the shelf till they rot (less space for sellable product) or donate them and then people won't buy as many bananas, so you need to raise the price.
Because it costs money to store and distribute.