Poetic, Not Literal, Fire
Commentators explain that the description of Leviathan's fiery breath is a powerful poetic hyperbole, not a literal biological fact. Albert Barnes notes this type of imagery was common in ancient literature to depict fearsome creatures and is even used to describe God's power in Psalm 18:8. The language is meant to convey overwhelming force and terror.