Blockchain spam causes other participants to up their transaction fees, so the overall fees mined is more than just the spammers' contribution.
This means spammers get some leverage AND if they're the same entity as the miners, then possibly it's a net gain from wasting sats on spamming.