Nato is an imperialist alliance that was created to fight imperalist USSR. Many of the funding countries was still colonizing other countries when it was created. Nato also destroyed Lybia which is the clearest example of it not being just a defensive alliance. Nato also collaborate with Israel who hold the longest current occupation, again has nothing to do with Europe protection.
The US could leave Nato today, attack a Nato country and Nato will do nothing about it