Amazon doesn't directly sell you the AWS infrastructure. But they rent it to you. Google is doing something akin to that. If they had an opt out saying "Don't use my private data to show me ads" I'd no longer make the point they sell my data. But they don't provide any opt-out, and the effect is identical to my data being sold to advertisers.