Lightning flashes because huge clouds rub together and build up a lot of electrical energy. When there's too much energy, it jumps from one cloud to another, or from a cloud to the ground, making a super bright, quick spark that we see as a flash!
Heads upThe answer simplifies the complex process of charge separation and electrical potential difference within clouds, which is a bit too abstract for this age. Children can grasp that 'lots of energy' builds up and then 'jumps.'
For youLightning is caused by a massive discharge of static electricity that builds up in storm clouds. Water and ice particles within the cloud collide, creating an electrical charge separation. When the difference in charge becomes too great, it overcomes the air's insulating properties, leading to a rapid and powerful electrical discharge that we see as a flash.