How exactly does a boat float?

A boat will float when weight of the water it displaces is greater than the weight of the boat itself.

A metal boat is indeed heavy, but water is also very heavy.