So they evolved an arsenal of toxins, irritants, hallucinogens, anticoagulants, cardiac inhibitors, and neurotoxic alkaloids. Every salad is a survivor's plate from a war you didn't know you were in.
Coffee is a stimulant insecticide. Capsaicin is a mammal deterrent we eat for fun. Caffeine. Nicotine. Morphine. Cocaine. Atropine. Strychnine. Every one of them is a plant trying to kill an insect, a mammal, or you.