The rotation axes of stars tell us about how they were born