Power corrupts the possessor. I have heard many stories about judges indulging in inappropriate humor. No need to postulate a mental aberration.