Closer to home, we see the same phenomenon in Canada. Being under the American nuclear umbrella, the money they would normally have to spend for defense can go into things like baby bonuses and keeping basket cases like the Maritimes from abject poverty.
The only geographical threat to Canada is the US, which means we’re under more of a border threat than are they. :^)