An ionic compound that attracts atmospheric water so strongly that a hydrate is formed is said to be:
Hygroscopic
Some substances tend to absorb moisture molecules from their surroundings to form hydrates. This property is called hygroscopy. Extreme hygroscopy - where moisture absorbed is so high that the substance itself dissolves in the water absorbed - is called deliquescence. Ex: ZnCl2 and CaCl2