The question is why she felt she needed to make one anyway.
In particular, she was hired into effectively an adversarial role: to note when Google was engaging in unethical practices. This is not particularly uncommon in business: internal audit teams do this in their own way, for instance. Or security teams, or legal teams, or whoever. All of them have the job of occasionally telling the company "Don't do this."
If an internal auditor (or security engineer, or counsel) says, I feel like I am unable to do my job under the terms you've set and if you don't change those terms I see no choice but to leave, it's worth asking why. It's possible that the auditor has an unreasonable view of how to do their job. But it's also entirely possible that the company is intentionally preventing the auditor from being able to do their job because they have something they don't want seen, that upper management wants to do something that they know their audit team won't agree with.
An ethicist is much the same.
It would be one thing if she was fired by her boss. She was not, and her boss was blindsided. She was fired by her skip-boss on the orders of her skip-skip-boss, neither of whom are on the ethics team, but who are in the larger Google AI organizational unit.
Moreover, she's not an auditor, and she has never been accused of publishing confidential information. My story about an auditor was an analogy.