Yeah it's "due process." In civil contempt the judge is a witness and prosecutor in the very "process" they're judging. That's the most perverted form of due process imaginable.
A judge should have to recuse themselves if they are acting as witness to the supposed infraction.