I'm surprised nobody has mentioned the most obvious (and innocuous) motivation: to expose young developers to google's cloud platform so that they'll be comfortable with it when they become big-time CTOs in a few years.
The network effects for cloud services are nowhere near as strong as they were for operating systems (end users don't care which underlying platform is used) but there is an advantage to having more developers familiar with your service.