That doesn't make any sense to me.
Another big point I think you missed is those individuals within Google influence the decisions about what gets open sourced. We have an entire team that facilitates taking Google-written code and opensourcing it.
Let me rephrase that then: I can't possibly hope to know why Google is giving away free stuff. I can certainly know that they don't do it out of the kindness of their hearts though.
That said, I am indeed very concerned that Google is trying to shape, not only the market, but the science also, to suit its own interests. That could be really bad for everyone, including Google; if research stagnates, they too will find themselves unable to deliver on their big promises about ever speeding progress.
Uh, yes? It's a market entity handing out free stuff.
I know, you're saying they do it out of the joy of handing out free stuff. But, well, that is what really makes no sense.
I think what your experience shows is that on the one hand individuals within Google (or any big corp) can and do align their own personal interest with that of the corp and on the other hand that the corp can benefit the community as long as it is making profit and serving its own purposes. Nothing surprising there.
As to releasing its tools, here's my Thought for the Day: There's no such thing as a free lunch and the only people who pretend there is are the ones who want to steal your lunch money. Google releases its tools when it is in the interest of Google to do so, not when it's in the interest of anyone else. Yes, they're doing better now than in the past in open-sourcing stuff and I can't know what's on their mind. But I can tell that it doesn't hurt them to get people adopting their tech even as Google itself develops it further and further to something that can only be used by a corp with Google's resources. In short, I'm pretty sure that their friendly offer of, frex, TensorFlow is just some trick to get people roped in to their technology, in the same way that other corps have tried to do before- except that they also made you pay for the privilege.
^