they eat pieces of metal and it gets stuck in their gizzard and when they release methane they grind the pieces of metal together causing a spark which ignites the gas.
(both by Atrox, who doesn’t have an account on this forum)
So they need certain metals in order to ignite their flames, but just collect all shiny things they see
(by @Aquos )