Jails are to isolate violators of law or legal process from the general public regardless of any opinions there upon. Putting a person in jail for contempt of court is legally just even if the underlying court case is absurd because it is the judicial process that is at threat.