Its pretty simple lol...polar ionic compounds are naturally hydrophyllic to some extent. Since standard water contains 1*10^-7 OH- and H+ ions these will combine partly with any salts, such as those with anions...
In a standard atmospheric reference environment there exists water vapor in the air such that the pressure of the atmosphere is equal to the mole fraction of the air times air pressure plus the mole fraction of water times the vapor pressure. Since the atmosphere may be considered an open system since matter passes through its control volume, any water vapor that is absorbed in ionic compounds will be replaced by outside water vapor such that the environmental humidity is at steady state.
Therefore when equilibrium conditions are reached with respect to a particular environment, the presence of water vapor in the air implies a moisture content in ionic substances such that the substance is now a mixture. Also, mass is still conserved with respect to the water since any water that changes forms to become part of the mixture is replaced by water from outside the CV (defining the CV to be right outside the immediate vicinity of the substance being analyzed). The only way to not have water vapor present would be for the substance being analyzed to not be subjected to environmental conditions, such as in a vacuum. However as soon as the substance hits the environment it will tend to absorb moisture, thus lowering its purity relative to initial conditions.
Source: Gen chem 1 and 2, inorganic chemistry, fluid dynamics, principles of and applied thermodynamics classes