The patent approval process isn't perfect. Had you violated the patent, and had Google sued you, you could always argue prior art. What would your evidence be?
The patent office could have just missed the prior art, or more likely is that the claims are more narrow than and represent an improvement upon said prior art.