Lightning does react with elements, but not by electrolysis, one good example is that the extreme heat of a lightning breaks N₂, and O₂ bonds in the air, then these atoms rearrange resulting in O₃ and NO₂, nitrogen dioxide reacts with water and becoms nitric acid. Maybe a lightning striking the...