The kinematic connection between galaxies and dark matter haloes