Judges have to work with District Attorneys. DA's seek a judge's sign-off on search warrants, and seek to have evidence either suppressed or admitted. They want to be on good terms with judges.
When Fani Willis was disrupting the proceedings, demanding the SHE wasn't on trial, that President Trump ("all of them") are on trial, she was implicitly accusing the judge of letting this hearing about HER even happen.
She acted in the same way that police officers act when being investigated by Internal Affairs.
It's not a good look.
-PJ