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 starts floating because the bubbles of hydrogen gas formed, stick to the surface of the metal.