Ants when infected with Ophiocordyceps fungi will climb a blade of grass and clamp on to it with their mandibles before they die. In this way when the fungi fruit emerges it stays high up to better spread.

How can a fungi induce such a complex sequence of actions?

What if it has some relation to the fact that many bees sleep... by clamping their mandibles on to a blade of grass for the night. Could the ant be activating some deep lost sleeping routine from it's wasp ancestry?

A solitary bee sleeps by holding on to a blade of grass with his mandibles.
ALT