This phenomenon is due to Archimedes' principle and the density difference between ice and water. When ice floats, it displaces a volume of water whose weight is equal to the weight of the ice. Since ice is less dense than water, the volume of ice is greater than the volume of the water it displaces. However, when the ice melts, it turns back into water, and the volume occupied by the melted ice is exactly equal to the volume of water that was displaced by the floating ice. Thus, the water level does not change.