Mysterious lightning flashes that appear to predict earthquakes could be sparked by movements in the ground below, scientists say.