GSoC is a perfect way for Google to keep activists quiet, because of the positive thought that, hey, they give back. Yes, Google also sponsors some key software, but it represents a tiny pile of money they can shuffle to tax savings. The cost/benefit in terms of image is illustrated by prominent free software activists saying publicly that GSoC is a good thing.
Both Google and Microsoft are enemies of free software, because they're enemies of freedom.