>>2706296>>2706608a number of factors are at play here. these knives are made in relatively small numbers and the maker likely has dozens of models he produces intermittently, whereas those shotguns are few models that are produced en masse, often (entirely or in part) in countries that have lower income. Thus economy of scale factors in for just about every part of the shotgun. the shotgun (especially, due to lower pressures) can also be made of lesser steels, and the parts if the action that need more wear resistance are comparatively small, such as the firing pin. barrels are smooth tubes that can be made as tubes in large quantities to finished outer and inner diameter (no rifling necessary) and only cut to length and fitted to a breech block. While the knife maker cnc machines his grip from more expensive and nice materialssuch as micarta or exotic wood, and then has to fit it to the knife and sand everything to be flush (likely by hand), the shotguns stock can be injection molded or made from more basic wood (which has to be machined too, but again large batches make automation so much easier). the knife maker has to give a proper heat treat to a steel (and likely uses several different steels, thus once again reducing batch size) and grind everything nicely and evenly. this sharpening is usually done by hand as well and requires a skilled worker.
yes, there may also be some element of knife makers overcharging slightly because a crowd of enthusiasts is willing to pay a bit more. but it's not the main factor.
you're better off comparing the shotgun to a mora knife. or the equally mass produced victorinox knives.