Original: At first it was thought to be related to the European glowworm beetle, but in 1886 a Christchurch teacher showed it was a larva of a gnat, not a beetle.
Simplified: Their larvae are glowworms.