Google is also unlike many tech startups in that its founders invested several years in academic research before founding a startup around it. It's a bit closer to biotech startups in that sense, a spinoff of research that was initially grant-funded. That allows for more of a focus on blue-skies research, because there's no pressure to produce any revenue during the initial research phase (their work at Stanford was NSF-funded).