Wow, that was pretty cool. I was watching it and started remembering some of my chemistry and physics because I was thinking "Why did it do that?". But it all makes sense, The lightning was ionizing a path to ground, once the path was established the rest of the charge flowed through.