Maybe they don't much care who gets elected; in that case there'd be no reason to buy a candidate.
Maybe they'd make a lot of money if people paid Google to influence an election in some direction. Or if not money, then regulatory or legislative relief.