Animals in the wild die of food poisoning all the time; that doesn’t mean that we should have our pets doing the same. It’s a bit like playing Russian roulette, the risk is better than outright starving, but it isn’t riskless.
Also, I’m not sure but I think that battery farming increases the proliferation of salmonella.