A company is just a group of people. Anything a group of people can believe, a company can believe.
A company with investors is a little more suspect, its true. But even massive public companies like Costco still stake out some claims with values beyond the economic and then pursue them. It's not an impossibility.
I also think, despite dropping the motto, that Google did not in fact ever become anything close to evil. I think people are being somewhat unfair (and hyperbolic at best) by claiming otherwise.
Google is a massive population monitoring and propaganda machine.
With AI and an authoritarian government they are an existential threat to humanity.