These two go hand-in-hand. As a whole-cloth believer in government's main goal being the protection of rights, I'd propose that it's pretty tough to guarantee those rights if you have invading armies or revolting citizens. Guaranteeing stability for the nation (in economic, military, and civic spaces) is needed, even if only as a means to protect liberty.