the analogy is simple. you have a public accessible space, in which you have neglected to prevent people walking into a hole and breaking their legs or worse. someone falls in the hole and dies, you are up for manslaughter
so, if judgey-poo lets a career criminal out again after repeated life harming actions, if said criminal commits murder while free after this, the judge is an accessory by neglect.