A written order is necessary to prevent arbitrary arrests, protect individual rights, and ensure that there is a clear justification for the arrest that can be reviewed if necessary.