Very important when there's explosives around. A flying chunk of rock or shrapnel that a helmet would stop could easily kill you if your head is bare.
Modern helmets can stop or deflect bullets in the right circumstances but that's not their intended purpose.