The phrase out of the blue is used to say that the issue or situation was completely unexpected.
Example in use: "One day, out of the blue, he proclaimed that he was divorcing."
The voltage from lightning is so great that it can travel over 20 miles, striking ahead of a storm while the sky is still clear and blue; thus the saying 'out of the blue.'