Only the top layer of a lake or river freezes underneath the frozen upper layer, the water remains into its liquid form and does not freeze. Also, oxygen is trapped beneath the layer of ice. The anomalous expansion plays an important role by only freezing the upper layers in lake and rivers.