I would answer it this way: Publication bans are imposed for the benefit of the victim or the witness, first and foremost. The interests of the accused are not taken into account in terms of determining whether the publication ban could be imposed.
Incidentally, the consequence of the publication ban imposed to protect a victim could also result in protecting the identity of the accused, if reporting on the identity of the accused would identify the victim.