T hey put him in custody, because it was not certain or clear what should be done to him.
And they put him in ward because it was not declared what should be done to him.