The would be the evolution cause and effect
As a counterpoint, there's loads of things that get humans high that don't have any obvious benefit, why shouldn't other animals be the same?
And there's certainly loads of other plants that work just as well as pesticides, and yet they don't get cats high.