Those countries weren’t part of nato when we signed the treaty. Whatever sense the original treaty made, countries have treated nato membership as a way to outsource their defense to the US, and the treaty makes no sense today.
Which isn't random, and has nothing to do with Dick Cheney.