I had no idea - from Pollinator Friendly Landscaping
"The less well-known larvae of the firefly, called “glow worms,” live in leaf litter and are voracious predators. They eat other insects, mites, earthworms, and even slugs and snails. The lights of the fireflies represent communication mechanisms."
Penn State LINK TO INFORMATION: [psu.edu]