Why does a firefly's tail glow?

Why do fireflies glow at their tails? Let's take a look at what the story in the book says!

Scientific Enlightenment Cozy X Science Exploration (Abandoned) X Science Enlightenment (Deprecated) Scientific inquiry Science Unauthorized Why? Ten Thousand Questions Animal World