Psychedelic effects could be an advantage, from an evolutionary perspective, that encourages consumption, propagation and cultivation of different species of fungi. I could see that being an agenda.
The jury is out on that. There are mushrooms that infect ants' brains and make them travel to a high place before the ant's head explodes, so that the spores are carried further by the wind.