I wonder why they had such a thing for pedants.
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.
For instance, there are also https://en.wikipedia.org/wiki/Sardarji_joke
We'd have to find the original text and consult a translation dictionary, I expect, to figure out exactly which sense was intended.