The dead guy was not a walker but even if he was you would have left the gun there?
No, I would not have left the gun behind but this the same woman who left the food behind they got from the school.