My perspective is a military one. You keep your head down so you don’t get shot so easily. This term is now used in modern times to mean, don’t draw attention to yourself or you might unjustly receive injury. The environment (job, with friends, family, etc) is usually not so stable in these situations. Maybe some people are arguing and you don’t want to be involved. So you keep your head down and stay away from the turmoil.