Taste is the carrot and the stick of survival. It leads animals to what they need—and away from what’s dangerous.