This is one of many words that began with a literal meaning that shifted to the figurative. If a person was a lack-latin—or, to use the full insult, Sir John Lack-Latin—Latin was Greek to them. Back in the 1500s, that meant they were a bit of a dum-dum, so this word became a synonym for lackwit, numbskull, and doofus.