Chemical weapons were banned because they weren't very effective on the battlefield and generated horrible PR for all involved, so it was an easy win for everyone to ban them.
The problem with autonomous weapon platforms (probably swarms) is that it looks like they're very powerful weapons that give their users advantages over existing capabilities. Enforcing a ban on them will be like enforcing a ban on gunpowder with swords and castles.