Asisreo
Patron Badass
There's also the fact that even if goblins were ignorant of fireball and bad at tactics, they still wouldn't group of in significant numbers. Anymore than 3 goblins in a 20ft radius is too close together.No, the monsters may be behaving tactically (based on the information they have), but the DM most certainly is not. The DM is choosing tactics that they know to be poor, because it's what they believe the monsters would do. Which is a perfectly valid choice for a DM to make, but is not based on sound tactics.
It's entirely possible that the DM can make a valid choice from both a RP and tactical standpoint. For example, hobgoblins who've encountered the party and know to expect fireballs.
Why? Because they're goblins. Goblins don't fight in mobs and advance like a squad, they're ambushers and skirmishers. They're constantly changing their position in combat and weaving through their enemies, because they know that an enemy that can predict them is an enemy that will usually win.
There's only a few monsters that would gather close together in a group: archers and brutes. Archers might attack in a close formation and launch their arrows to the sky which would be perfect pickings for a spellcaster to wipe them out all at once. Of course, a sniper is different in that they'll spread themselves out and be in constant cover. A scout NPC can be either an archer or a sniper. The other enemy type is a brute. These enemies want to run to an enemy and pound them with melee as quickly as the can. They prefer to surround their targets so escape becomes much more difficult. Brutes tend to have higher health, though, and may end up surviving the blast.