Most substances shrink as they get colder. When a liquid freezes into a solid, its particles usually pack together more tightly, so the solid is heavier than the same amount of liquid and sinks. Water is an unusual exception, and that exception makes life on Earth very different.
When water freezes, its molecules lock into a pattern of six-sided rings with open spaces inside them. Those spaces make ice take up about nine percent more room than the liquid water it came from. Because ice is less dense than water, it floats. You can see this in a glass of ice water, where the cubes bob at the surface with only a small part sticking above it.
Floating ice is extremely important for lakes and ponds. In winter, ice forms first on the surface and spreads across it like a lid. The ice protects the water below from the freezing air, so the bottom of the lake stays liquid all winter. Fish, frogs, and turtles survive in that cold but unfrozen water until spring.
If ice sank instead, lakes would freeze from the bottom up. In a cold climate, many of them might become solid blocks of ice, and very few creatures could live there.