Soldiers blue metal objects because metal shines.  While shaving, no one wanted to flash their razor to a sniper, showing their location, just not a good dealï»¿ to stand out when people are trying to kill you.