Ice has a density that is about 9% less than the density of water at it's freezing point so ice floats. Imagine a watering can, open at the top, the ice layer forms at the top (since ice floats) and gradually gets thicker. As the water below the layer of ice freezes the ice that forms takes up more space than the water it is formed from. This builds up pressure that eventually deforms or bursts the can.