It is a metal, but that has nothing to do with vinegar getting rid of limescale.
Limescale is not calcium metal, it is calcium carbonate (which is the same thing, chemically, as chalk and limestone).
Vinegar, being an acid, will react with limescale, which is a base (alkali), in the same way...