The meaning behind that is a little obscure, and it could go in different directions depending on how you look at it. To me, it means that it's not what you know or don't know that makes you stupid, but what you do with that knowledge. Being stupid is an action, and a "stupid person" is a person who makes stupid actions.
The term "as" is a little hard to explain, but I like to think of it as like an equal sign. In this example stupid = what stupid does.
Take like the term "It's as good as new." The statement basically applies the quality of "new" to "good", then applies that version of good to whatever "it" is.