Good that you did. One of the signs that a lightning bolt is about to strike in your immediate area is a build-up of static charges which you can feel as it makes your arm hair stand on end.
That is a good time to pitch to the ground laying flat and pray you don't get hit.
Before lightning strikes, there is a build-up of a cloud of electrons (or electron holes) at either end of the points of greatest attraction as they seek to find a way of meeting in the middle, overcoming the intervening dielectric barrier of the atmosphere and completing the circuit.
It is like the inside of a giant diode.