Seems the point is fairly clear.
If the man were an athiest and the judge required him to go to a religious service, then that would be wrong. If the man were an athiest, he would have to go to jail. If he were a god fearing man, he would have to go to church and could live his life in relative freedom to the athiest.