If you go, for example in the United States, to any grocery store and ask them why they don't donate their excess food to charity, that they are otherwise just throwing away, 99.9% of them will tell the same reason: They can't because of the fear of lawsuits. They fear that if somebody gets food poisoning, they will be sued.
However, the thing is, the so-called Bill Emerson Good Samaritan Act of 1996 was created precisely for this purpose, ie. to protect benefactors from liability in these cases, and to promote the donation of excess food. And, in fact, there has not been a single case of a lawsuit in the United States because of this reason, ever. Not a single one.
Yet the myth persists, and is probably not going to die ever. And millions of tons of food are thrown away every year while at the same time millions of people starve.
And the United States is not the only country doing this.
Humans are idiots.