Earthquakes have been documented as to producing electrical charges. Has to do with the ground moving, hitting together in some places, possibly igniting gas seepage areas, or getting hit from lightning.
https://twitter.com/aprajitanefes/status/1701844694421176578?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1701844694421176578%7Ctwgr%5E92245ed681069913a7548b88ce0e75820597956c%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fwww.globalresearch.ca%2Fmorocco-earthquake-preceded-mysterious-blue-lights%2F5832465