NATO was created to counter the Soviet Union but after the USSR fell apart, NATO did not disband. Instead Europeans hired the USA for their defense. The USA enjoyed the status and power of being the dominant military force in Europe.
Unfortunately "entangling alliances" such as NATO tend to draw us into remote conflicts where we have nothing to gain:
https://en.wikipedia.org/wiki/Washington_Doctrine_of_Unstabl...