They are intended to accelerate a small projectile at high speed using combustion gases as the prime mover.
I don't want to turn this into a political flamewar, but please don't assume malicious intent as the primary motivation for a tool's existence. That's like saying lockpicks are only good for burglary, axes for dismemberment, or knives for stabbing.