Germany faced the Warsaw Pact. It was in their interest, and ours, for Germany to be strong enough to make an invasion from the East seem like a bad idea. That has worked out well for them.
Oddly enough the Japanese military is one of the most powerful and well funded in the world. It’s just not advertised, like Japan’s nuclear capability.