I can pull a trigger a lot faster than I can say "Protego!"
Seriously, there's a lot of firepower that HP wizards can throw around, but they're not that durable, nor do they have the superhuman reflexes needed to curbstomp a gunfight. If a muggle is waving a gun around, of course they're going...