It doesn't. There was probably an elite in range somewhere - *OR* a treasure goblin (perhaps slightly off-screen but within range). You can disable wrath on goblins in the config of Trinity.
There's no checks in place to only use on trash mobs though - no matter how many trash mobs there are!