Intelligence agencies have a history of attempting to circumvent the limitations imposed by funding. There's a lot of evidence that the CIA has been involved in drug trafficking. In the case of the NSA, it could for example sell some of its intel to the private sector (technical and business information concerning rival companies).