Why can a magnet pick up a tin can?

A 'tin can' is actually made of steel, which is a magnetic alloy of iron.

There is sometimes a layer of tin (or zinc), electroplated onto the surface, so the name is misleading. It is more properly a 'tinned' can as it is a steel can which has been 'tinned' to stop it from corroding.