What is the meaning of [a young barber and an old physician]

Youth is fine in a barber but undesirable in a doctor.