Being Stupid means avoiding thinking by jumping to conclusions. Jumping to a conclusion is like quitting a game: you lose by default.
So When someone says “They are so stupid!” — it means they’ve stopped thinking. They say it to feel finished that subject, because there’s nothing they can do about that. It’s appealing and satisfying to jump to that conclusion.