Well they both are across the large ocean and it's difficult to invade US from their location (especially for NK which probably doesn't even have ships). US is surrounded by weak, peaceful countries and separated by oceans from not-so-peaceful ones. It could cut the military spending completely and still be safe.