Hello Maria,
As a general rule, inorganic compounds are often soluble in water, but much less soluble in other solvents such as alcohols. Washing inorganic salts will: a) remove water in the inorganic salt, b) wash away very little inorganic salt (which may be your product from an experiment), c) can crystallize inorganic salts if a small amount of water is present, and d) will tend to dissolve organic salts leaving your inorganic salts with less contamination.
I hope this helps you out,
Sincerely,
Eugene Dakin Ph.D., P.Chem.