Dozens of animals, some on land but many in the ocean, can produce light within their bodies through chemical reactions. Scientists are still trying to understand when and why this trait developed.