The thing you’re missing is that GCHQ spies on Americans (Foreigners from the UK perspective) using the NSA’s money, then it shares the findings from the spying with the NSA under an intelligence sharing agreement. GCHQ is mostly an outsourced wing of the NSA.