Here's why:
* Collective nouns refer to a group of things or people as a single unit.
* "Swarm" specifically refers to a large group of insects, especially bees.
While you can technically say "a swarm of bees" or "a swarm of locusts," it's often used without an article ("The swarm descended upon the picnic") because it already implies a group.