The professor called the valedictorian to explain her outfit