CIA operates in the National interest, at least hypothetically. Google can operate against national interest to make money, or 'whoever pays most' interest.
The people of USA have granted CIA privileges of secrecy and legal protections explicitly to do ShadyShit. No-one ever gave Google permission to do ShadyShit.
CIA employees go through background checks, US Gov can fire head of CIA for being a dick. Google hires whoever the fuck they want and US government can't fire head of Google no matter what he does.
If Google is ever found doing 1% of what CIA does legally (and there ain't much!), they need to be in jail real fast.