The other part nkh didn't mention is you can retire after 20 at half pay. If you make Lt Col by then (not so hard), that'll be about $45k free yearly income at age 42 for the rest of your life.
Plus, it's quite easy to then get a military contracting job. That, with the secret clearance you'll have as an officer, pays pretty nicely.