Food born illnesses (e.coli, salmonella, norovirus) have ravaged societies for hundreds of years.
only very recently in the west have we been able to say "this food sucks" because of our opinion of the taste, look. It used to be "I will eat this food that sucks" because even though it tasted sour that's all there was.
I balk at people throwing bread in the trash, that was near sacrilegious lol.
Anyway, people lived. There was struggle, yes. Perhaps it was better than the meaningless waste of life millions have today.
An experiment that isn't reasonable: Go to a Gastroenterologist, tell them you regularly or have no issue eating molded food/expired, and see if you carry the same heath insurance provider within a week.
You would balk at the realization that those eating habits you mentioned aren't thought of as "healthy" by those analyzing healthy eating habits and adjusting insurance rates off of it.