"like a bolt out of the blue" means: something that is not expected. This is because when the sky is blue, you don't expect a lightning bolt.
For example:
His resignation came like a bolt out of the blue.
This blog is mainly to explain a different English language expression every day. Sometimes I post other stuff. I also have a YouTube channel which is mostly about computer software: https://www.youtube.com/englishspacedog