There's a line to be drawn between "don't be evil" and "don't do evil". With such a huge organization, things slip through the cracks and accidents happen that result in bad things. But I find it hard to believe that Google decided to out someone.
They were warned about the negative consequences of identity conflation, then built a system that did just that. They didn't "decide" to out someone, but they built a machine for outing people.