Exactly, why would you sell weapons to even an ally (who at some point could broker those weapons / IP to a near-pear adversary or grey area state) anywhere near as capable as your own?
Obviously, when it comes to terrorist groups and broke eastern european nations the U.S. has made mistakes with this line of reasoning. Re: captured weapons in ukraine ending up on the black market...