This phenomenon results from the accumulation of electrical charges in cumulonimbus clouds
... 
positively charged particles and negatively charged particles are separated, 
forming an electrical field.