He got off on a "technicality" since though the evidence would have convicted him (I think), the way they got their evidence was illegal.
Unfortunate, but it does happen in real life. In Baltimore alone, there are cases where known murderers get off because no one will testify against them, despite the prosecuters having evidence that will put them away...