The fear that causes cops to shoot first and ask question later is part of cop culture, not a rational response to the prevalence of guns. It's also linked to racist assumptions about Black criminality and fear of the Other that permeates American culture as a whole, but police training is very specifically geared to conditioning cops to treat every interaction with civilians as a potential shoot out.
I think they're all factors.