When Danis asked him to be a reviewer, he specifically consulted Yuan Zhengxin's opinion. Pan Jingyuan himself was not particularly resistant to being a reviewer for Qiao Yu's paper.
But Yuan Zhengxin was more thorough in his considerations. Given that Pan Jingyuan worked at the Science Center, he feared that if his relationship with Qiao Yu were exposed in the future, it might affect Qiao Yu's reputation. Of course, this referred to reputation among the general public. After all, serious mathematicians could recognize the value of Qiao Yu's paper.
However, often when someone intends to discredit another, they disregard the facts, and might not even consult real experts. Even if they do, they have various ways to quote out of context.
This is human nature...
Even if you do a million things that benefit the vast majority of people, a minor mistake, once magnified, can become an inescapable sin in one's life.