They’re not just meeting for the first time in court. They’re usually buddies, and the judge may even be helping the lawyer come up with something that can seemingly justify throwing the case out.
“Theyâre usually buddies...”
That sounds plausible, and they probably got together afterward for a good laugh for everybody else being foolish enough to fall for it.