When your character automatically raises their weapon ready to shoot it indicates that there is a zombie somewhere in front of them. Make sure when this happens that you stay alert and proceed cautiously as zombies have a tendency to hide and suddenly attack when you least expect it.