It's trivial to use software to automate spam on more open web-based platforms, such as Facebook Messenger. This is a lot tricker with iMessage, where only authenticated Apple devices, with a unique identifier, can connect to the service. Buying truckloads of Apple equipment to spam iMessage is obviously uneconomical(and totally ineffective, given that Apple will swiftly ban any spamming devices), and software hacks to be exploited by spammers are either hard to come by or non-existant, and can quickly be patched by Apple
Again, not saying spam on iMessage is impossible, but it's clearly very difficult given the relative lack of spammers on the platform.