It’s not that they’re idiots, though many cops are. It’s that they don’t get punished for falling for a SWATting attempt.
If you could lose your career if you fell for it, they’d try a lot harder not to fall for it. But, instead, they never face punishment for being overly aggressive, and might face punishment for not being aggressive enough in the case of a real emergency.