The short answer is thermal runaway.
We seen this a few years ago with the Samsung Galaxy S5 phones that would spontaneously catch fire. It's the batteries.
The power in a battery (more specifically a lithium battery) has to be spent or discharged. If an accident or incident causes the energy to turn on itself (positive and negative are bridged by metal or a conductor) it cycles energy and continues to heat up until ignition.
Wikipedia:
Batteries
When handled improperly, or if manufactured defectively, some
rechargeable batteries can experience thermal runaway resulting in overheating. Sealed cells will sometimes explode violently if safety vents are overwhelmed or nonfunctional. Especially prone to thermal runaway are
lithium-ion batteries, most markedly in the form of the
lithium polymer battery.[
citation needed] Reports of exploding cellphones occasionally appear in newspapers. In 2006, batteries from Apple, HP, Toshiba, Lenovo, Dell and other notebook manufacturers were recalled because of fire and explosions. The
Pipeline and Hazardous Materials Safety Administration (PHMSA) of the
U.S. Department of Transportation has established regulations regarding the carrying of certain types of batteries on airplanes because of their instability in certain situations. This action was partially inspired by a cargo bay fire on a
UPS airplane.
[16]One of the possible solutions is in using safer and less reactive anode (lithium titanates) and cathode (
lithium iron phosphate) materials — thereby avoiding the
cobalt electrodes in many lithium rechargeable cells — together with non-flammable electrolytes based on ionic liquids.