Cupid (Eros) got pissed off at Apollo who was making fun of him.
He shot Apollo with the golden arrow of love and Daphne with the lead arrow of hate. Apollo chased her until she called on her father Peneus for help, who turned her into a tree. Apollo out of sadness and love promised her leaves would be forever green so Daphne became the perennial Bay Tree.