The armed forces you need to keep neighboring rivals or meddling first world powers out of your borders are also highly unprofitable
Even if it's as poor as NK, the guy who commands it can have more material riches than most of us can really consider