Guns are designed to destroy, period.
A gun is not a weapon. A gun is a tool, and nothing more.
It is a tool designed to initiate and contain a rapid gas expansion for the purposes of driving a malleable alloy pellet along a repeatable trajectory.
And that, Gentle Readers, is the only thing a gun is designed to do.