A lot of this issue has been caused by junk science.
The NYTimes reports:
No question many foods had longer shelf life when preservatives, salt and trans fats were in greater use. none of these additives caused any harm, but junk science-fueled activists pressured the government and weak-kneed food processors to remove them. increased food cost and more food waste is the result.