That was a failure of someone's storage and handling standards.
When I was a child, we had no fridge, fresh food was kept in a larder, always covered to keep flies off it, and used up as soon as possible. Anything dubious went into the pig bucket, which was collected by a farmer and fed to his pigs.
My mother would not have cooked or handled food without washing her hands, and we all washed out hands after using the toilet or doing anything else that could carry germs. That was because it was an obvious precaution, not because it was government policy.
She made jam, which lasted years because it started with equal quantities of fruit and sugar, and was then boiled down to setting point (60% sugar) and chutney, which was preserved by the vinegar.
Some people think that the fridge will do their thinking for them, and forget to decide for themselves whether something is fit to eat. As Deedaa said, many people have never met anything that was really off, so don't recognise the early signs.