Stupidity is a very specific cognitive failing. Crudely put, it occurs when you don’t have the right conceptual tools for the job. The result is an inability to make sense of what is happening and a resulting tendency to force phenomena into crude, distorting pigeonholes.

Source: Why some of the smartest people can be so very stupid - Psyche Ideas