What would cause a battery in a parked car to spontaneously catch fire?

Just popped in to note that, if there is smoke coming from the engine compartment, DO NOT RAISE THE HOOD!! That just introduces a whole lot of oxygen to a combustible mix. Leave the hood closed and let the fire fighters to their thing.