That was their voluntary decision supported by the population of both states.
A closer analogy would have been some proposals to dissolve the German state forever after WW2, and get its parts annexed by other states. But that didn't happen.
Not to mention that Nazi Germany was actually doing an actual genocide. But that wasn't sufficient to warrant the same fate for them as a nation.