As they cool and slow, the weak electrical forces between the different parts of the V-shaped molecule become more important, and the molecules arrange with the oxygen atoms of one molecule close to a hydrogen of another.

This forces the molecules to "stack" point-of-V to end-of-V, which is a less space-saving arrangement, so the solid ice takes up more space than expected.