Of all the reasons I would not enlist in the military, this one never occurred to me, but it is now probably in my top five.
Imagine you are 21 and unable to spend money, have free housing (the ship) and free food, then you land in a foreign country where you can finally drink after 8 months at sea with all the money you saved.
It's high high's and low low's
Officers make good many anyway, but that's pretty funny imagining execs yelling at you to pay your bill.
Ground troops in Iraq and Afghanistan in the Global War on Terror were under General Order #1, which prohibited alcohol in theater, but elsewhere like Djibouti and Qatar were authorized three beers a day maximum.