I’ve met some too, but I’d say that most are incapable. Or they are the same proportion of the population that is capable. I don’t think teachers are any more or less likely than a typical person.
I’d guess I’ve met and spend significant time with 100 teachers. And a handful were capable of being a professional programmer.
My post does assume that the career would attract more highly qualified candidates if the pay was higher.