The benefit of vomiting after eating something poisonous or tainted is obvious: the toxin is expelled. And the dreadfulness of the accompanying nausea deters you from ever wanting to eat anything like it again. This explains why pills, chemotherapy, and general anesthetics so often cause nausea and vomiting: they are poisons—albeit controlled ones—and the body is designed to reject them.

