You have lied in court. Is this correct. How do we know you are telling us the truth.
But: It’s not hard to say „no, I have never seen him doing drugs“ or whatever.
Don’t expect everyone to say the truth just because game theory suggests to optimize for individual rather than mutual reward.