The size of alkaline earth metal ions is lower than the size of alkali metal ions and the charge is higher. The lower the size of the cation and higher the charge, the higher is the hydration energy. So the salts of alkaline earth metals have more water molecules of crystallization than those of alkali metals.