> Membership in it is purely voluntary. This makes it quite unique.
NATO arose from the ashes of conflict but membership is entirely voluntary, and unlike leaving the EU there is no talk of 'punishing' those who no longer wish to remain.
For example France left the NATO integrated military structure in 1996 and rejoined in 2009 without penalty.