Thunder booms because lightning makes the air around it super, super hot, really fast! That super-hot air pushes out really quickly, like a giant balloon popping, and that makes the loud booming sound we hear.
Heads upThe answer simplified out the concept of a shockwave and the rapid expansion and contraction of air creating a series of sonic booms. This depth can be introduced when the child is ready for more complex physics concepts, perhaps when learning about sound waves or speed.
For youThunder is the sound produced by lightning. Lightning instantaneously heats a narrow channel of air to extremely high temperatures, often around 30,000 Kelvin (much hotter than the surface of the sun). This rapid heating causes the air to expand explosively, creating a shockwave. As this shockwave travels through the atmosphere, it generates the characteristic thunderclap, rumble, or boom we hear. The specific sound we perceive depends on factors like the lightning's path, the distance from the strike, and environmental conditions.