I mean, Google develops three other open source operating systems and is a major contributor to other operating systems, as well from other vast open projects like Chromium. It's not as if open-sourcing an operating system is even slightly out of character for Google.