Quote from : Bats Sing, Mice Giggle: The Surprising Science of Animals' Inner Lives Book

Research suggests that the earliest flying reptiles swallowed small pieces of volcanic rock and could breathe out flammable gases like hydrogen produced in their own bodies. It is hypothesized that their ingenious “fire breath” was used as a defense against predatory reptiles.