If the judge thought the guy was lying, which she obviously did, I think she can say anything she wants.
This doesn't appear to have been a jury proceeding.
Where do you draw that conclusion from? If it wasn't a jury hearing, how did the defendant foundf guilty?