I'd never thought of that Lr! Possible.
What I thought at the time was that thejudge was very naive & couldn't contemplate abuse of any kind........but you may be right! Surely judges hear everything and know about stuff most would rather not know. Whatever, it was an awful, unjust, thing to say. He was rightly castigated.