Seems the word being translated is Σχολαστικὸς.
At its root its a person who doesn't work. A scholar didn't work and could devote their time to acquiring knowledge. But a lazy person could also be a scholastikos.
So I think here it is getting the double treatment, referring to a person who has lots of book smarts but no common sense.
Pedant kind of makes sense as a person who thinks themselves smart, so perfect for being the butt of a joke about being stupid. Pedant, afterall, was once just a word for teacher in English, but has taken on a negative connotation.