wiktionary
ref
fire(“projectile discharge”) + arm(“weapon”).
etymonline
ref
firearm (n.)
also fire-arm, 1640s, from fire (n.) + arm (n.2). Anything which expels a missile by combustion of gunpowder (or a similar substance), from a pistol to a cannon. Related: Firearms.