Because they value speed and cross-browser compatibility more than conforming with the standard. As long as the errors are minor and don't affect the page display (and I am sure Google is well aware of that), you do not really need to care about valid html code.