The metal calcium upon reaction with water forms bubbles of hydrogen gas. These gas bubbles stick to the surface of the metal making the metal to
Float
A metal reacts with water to give metal hydroxide and hydrogen gas. In this case, calcium reacts less vigorously with water to form Hydrogen gas. The metals start floating because the bubbles of hydrogen gas formed, stick to the surface of the metal.