It’s due to something called thermal runaway, which happens when the battery enters a stage of uncontrolled self-heating.