He was give a deal where no charges were brought in exchange for his testimony
The YouTube lawyer panel talked about this being an advantage to the prosecution because if the defense did anything similar, it would be witness tampering. I believe it was one of the points the panel took issue with the defense lawyers not making a stronger point or case.