Origin of metric tensor from 1st fundamental form (see First fundamental form), for surfaces.
video 2