Where do you draw that conclusion from? If it wasn't a jury hearing, how did the defendant foundf guilty?
It was during a "sentencing hearing" according to the story. That implies that it wasn't part of a trial by jury proceeding.
Plus, there's no mention of the comment being particularly bad because it would influence the jury.
And you can waive your right to trial by jury.
I've been a juror in trials where the jury decides guilt or innocence but is then excused. The judge then decides the sentence.
That probably is what happened here.