1)  how do you know he wrote this on company time, or even emailed it while working?
2)  you are right that Google had every legal right to fire him.  But morally it seems like an attack by an uber-powerful organization against a single individual expressing an opinion.