Well the "good guy with a gun" argument presumes the good guy is willing to use his gun and probably risk his own life doing it. This would happen more easily if he's already inside and under direct threat by the bad guy(s).
A cop outside is not obligated or expected to put his own life at risk. He's expected to show up for work tomorrow.