The breathing hole and the eating hole being connected is pretty bad, too.
So even if it increases the risk for choking, you reduce the risk for eating something hazardous.
At least, that’s one possible explanation.
It's much safer to smell something before eating it, and much easier to reject it if it smells bad.