My understanding is that such evidence is only thrown out of court when challenged by opposing counsel. For example, a prosecutor puts forth some evidence, then the defence lawyer objects, and the judge rules on if it is admissible. If the defence doesn't object...