Puncture a gas tank, see what happens... you'll get a leak and "maybe" a fire, that can be extinguished. Rarely to cars explode from the gas.
Puncture a Lithium Ion battery, see what happens... Once one of those batteries starts burring, forget it, anything around it is done. They don't even try to stop it, just contain it as far as I know. Maybe one of our first responder types can chime in on that.
EV fires are a WHOLE other ball game.