It may be that fireflies first started glowing to warn off predators that they contain a toxin and taste horrible.