Chili peppers evolved to be spicy because heat repels most animals except for birds, which are responsible for spreading their seeds.