You should be giving constant feedback; firing should not come as a surprise. And if someone is not delivering, the people who depend on that output will know. Totally unrelated people should reserve judgment.
The surprise was for the people around them, not the person being fired.
> Totally unrelated people should reserve judgment.
In the real world, they don't.