Origin of the name Junior

From a nickname which was originally used for a boy who had the same name as his father.