Plants produce a plethora of compounds that some biologists refer to, rather illogically, as “natural compounds” or as “phytochemicals” (illogical to plant biologists because all compounds made in plant cells fit this definition; these terms come from the field of pharmacology, where they do make sense as a way of distinguishing them from synthetic medicines). These compounds have also been misleadingly called “secondary metabolites,” an anachronistic term that was coined when scientists did not know the biological functions of such compounds and suspected that they had no function at all but were waste products. Their general intent was to define compounds that are present in some plant species and not in others, and therefore could not logically be involved in the basic, primary metabolism operating in all plants. As more evidence concerning their functions accumulates, it has become clear that the ability to synthesize such compounds evolved in different plant lineages, and these compounds represent adaptations to specific ecological situations, for example, attraction of specific pollinators or defense against specific herbivores. For this reason, these compounds have recently been termed “specialized metabolites”
The essence of convergent evolution is that the same biological function evolves independently more than once. The evolution of eyes (for sight) of vertebrates and insects is an often cited example. On any level—anatomical, cellular, molecular—there may or may not be resemblance, but the function is judged to be the same. The evolution of wings (for flying) of birds and bats is also an example of convergent evolution.
Mimicry is a category of convergent evolution. In this case, the ability of plants to synthesize a compound appears to have evolved because another organism interacting with these plants also synthesizes an identical compound or a compound with properties in common. Sometimes, as is the case in the examples above, plants mimic neurostransmitters as a defense mechanism. THC possesses analgesic, anti-inflammatory, appetite-stimulating, and antiemetic properties. Ephedrine has a powerful psychedelic effect on humans. Mescaline binds to and activates the serotonin 5-HT2A receptor
Learn more in the article Convergent Evolution in Plant Specialized Metabolism, written by Eran Pichersky, of the University of Michigan, and Efraim Lewinsohn, of the Agricultural Research Organization in Israel, for the 2011 Annual Review of Plant Biology.