That's not true.[1] After expenses, the "take-home" is minuscule, but they are still salaried members of the armed services.
1 - https://www.usna.edu/Admissions/Student-Life/General-Informa...
1 - https://www.usna.edu/Admissions/Student-Life/General-Informa...