You also get your defence and healthcare advancements mostly paid for by Americans, either as taxes or healthcare costs that funnel into R&D spend. It's easy to give things away when you mostly only have maintenance costs to bear, and not very much risk.
(Not an American.)