It's more common than you might think. Google has a very, uh, open attitude toward open-source hobby-project code contributions by employees.
See https://developers.google.com/open-source/projects for more, and if you'd like to come work for a company that lets you use 20% time to create new projects or contribute to existing projects, visit http://www.google.com/about/careers/.