Just because we have receptors that have affinity for molecules that we call cannabinoids doesn't mean much in terms of evolution related to plants. There is a wide range of molecules that have a shape that bind to the wide range of receptors that are a part of what we call the endocannabinoid system.