It also spends money developing genuinely unencumbered programming languages that are, in general fact, quite pleasant.
Google can make money in one way and still provide real value in others, and that’s what they (and all of Go’s contributors) have done with Golang.