Input (grade 13): The secretion of capsaicin is likely an evolutionary adaptation to protect the fruit from consumption by mammals while the bright colors attract birds that will spread the seeds.
Output (grade 5): The plants developed the secretion of capsaicin to protect the fruit from being eaten by mammals. These birds will spread the seeds.