By definition the world mostly comprises idiots - I mean the average IQ is 100, for Chrissake - but if you're someone who gets frustrated about working around idiots, etc, then it's wholly within your control to change jobs, move up in the career world, become self-employed, etc.
It's also fine to accept the situation, decide that the gains and marginal utility from the stress of changing job or becoming self-employed are not worth the effort, and just grit your teeth and work with the idiots.
Alternatively, you can appreciate that not everyone has intellectual gifts but most people are doing what they can with what they have, and live your life that way.
In any case, you choose your own adventure and all three of the above are valid choices. The main thing is, I think, to not complain about your lot in life since you (if you are reading this forum) have a large degree of control over both your direction and your attitude.
For what it's worth, I think most people around me are pleasant and smart people, and I don't know many idiots. Whether that's due to self-serving bias or because I try to only socialise with people I like and respect, is a question that I'd rather not have to answer.