Part of the allure of the job is that it's supposed to be about abstract values like honor, duty, loyalty, patriotism etc. and not about compensation. It can't be otherwise, because then you have to accept that the job is basically just about killing people in exchange for money.
It can be about all that stuff and you can pay people well. Nothing about the latter implies you have to suddenly change your values.
And yet I'm sure there are plenty of reasons these roles can make you quite cynical about those values (specifically, if leadership has those values) and decide it's no difference. Might as well make more in private industry without needing retraining.