It’s part of the NATO treaty/alliance.
Per the agreement with each other, NATO member states have a say in economic and military alliances and actions of the other member states.
You don’t hear Germany insisting for the US to stop buying Mexican avocados for the German alternative though.