“Until the second half of the twentieth century, mortarboards were often worn by schoolteachers, and the hat remains an icon of the teaching profession.” [source]
So they weren’t saying that he just graduated, they were saying that he was learned (the tortoise even says, “he is the wisest of us all”).