As long as tax laws allow companies to write off stock destruction over repackaging (however you envisage that) this will continue to happen. It’s not a bug, it’s a feature.
I used to work in Costco and would throw out of date stock in the skip, this was in Sighthill before they razed the tower blocks full of asylum seekers (note: they let them out before they knocked them down) and was an otherwise deprived area anyway. The manager used to go out at the end of the day and just to make sure nobody got anything would pour bleach over the lot. Thankfully we live in slightly more enlightened times now, round our way the Nazerenes hoover up everything and batch cook for the food bank.
You also still have the ridiculous scenario where people put things into recycling centres and you’re not allowed to take them, even Australia get that one right.
A distributor used to send lorryloads of expensive hardware for long, long laps of the M25 once a quarter.
I remember reading something about this before. Might not be the same one but was vaguely amusing. Trying to think what it was, I thought it was something military related.