> NATO.
Because that's not the main reason or even a primary reason. There are a bunch of NATO countries that don't use US aircraft. Similarly there are non-NATO countries that buy the F-35 and many non-NATO countries that would want to buy it if they were able to.
For a much better breakdown on why countries would buy the F-35. This portion of this presentation by Perun is a great intro: https://youtu.be/7Z_gTGJc7nQ?t=2219
In short, because of massive scale, the F-35 is cheap despite being highly advanced.