When water freezes, it forms sort of a crystal lattice. It has to do with the way the positively charged hydrogen atoms in a water molecule and the negatively charged oxygen atom arrange themselves.

This is cache, read story here