The judge likely issued the warrant based on the detective’s sworn testimony. In most cases, a judge does not have the ability or detailed knowledge to independently verify whether the detective completed all necessary checks.
This situation likely resulted from either sloppy investigative work or an honest mistake: the detective believed her booking photo matched the individual captured on camera.
Because the police or the prosecutor or whatever can ask for whatever they want, but it's up to the judge to refuse their stupid claims. Though the others should get some blame too.