I don’t know what policy in the navy is today. I joined the navy as you could have a beard in the 1970s. We just had to have neck shaved to fit the maskThat stopped when protective masks became mandatory shipborne.
Some religious exceptions still exist today.
The main reason no a lot of men shaved was you have to go to town and see the barber.
Straight razors were NOT designed for you to use, but the barber to use, shave and a hair cut, 2 bits.
In 1903 Gillette came out this the safety razor, anyone even the woman folk could use them.
I use one every day.
Straight razors were sold on the frontier. So while it’s true that most people shaved with barbers, shaving did go on in private.
We see paintings of clean shaved but most men shaved twice a week back in the day. So a hipster shadow was popular back in the day