Aaaaaaaaaaaaaaaa. Every time I see this meme or versions of it I die a thousand times. Mushrooms are the penises of fungus who jizz peacefully in the wind. They WANT to be eaten. Spores travel far.
Psilocybin, if anything, is probably adapted to be attractive to other animals.
Just like peppers, a sort of odd evolution when humans come into play.
Peppers devolved capsaicin to keep mammalian herbivores from eating them and grinding the seeds up. Birds have no capsaicin receptors, happily poop whole seeds everywhere.
Along come humans. "Let's grown and refine that shit!"
I've been using one of the hottest sauces I've had in a long time. It's called Satan Revenge made with ghost peppers. I'm in so much pain when and after eating it. It's good stuff.
When ingested, the fruit is reportedly "pleasantly sweet" at first, with a subsequent "strange peppery feeling ... gradually progress[ing] to a burning, tearing sensation and tightness of the throat." Symptoms continue to worsen until the patient can "barely swallow solid food because of the excruciating pain and the feeling of a huge obstructing pharyngeal lump."
Peppers want to be eaten by birds. Birds love that shit, and the pepper seeds love the bird shit they'll be in after passing through the digestive tract.
The Botany of Desire is a fantastic book and also documentary that discusses, in some part, plants being desirable to humans as a selective force. Plant species that humans value have a higher likelihood of surviving because we use them for agriculture, ensuring their ongoing existence. Everything from tea to teonanácatl!