What is the meaning of [A blessing in disguise]

Meaning: A good thing that initially seemed bad