Why did Wang Anshi give Du Like Fu instead of Li Bai?

In the Tang Dynasty, between Li Bai and Du Fu, Wang Anshi preferred Du Fu, which was also the period when he was the chief judge in Zhou Shu. He has a poem called "The Portrait of Du Fu", which is very sympathetic to Du Fu's hardships and wanderings. Among them, there is a saying: "Poor life can't be reversed." Lan is always more angry. I'm hungry for half of Kyushu. A thin wife is stiff in front of her son and servant, and stiff in front of the bustling thief Sengomao. Oh, don't waste the imperial court's mind at this time. May the son of heaven be holy, and I will have my own week. I would rather let my house freeze to death alone than endure the cold of the four seas. At that time, ordinary people were also trapped in housing and could not live in peace. ) I am ashamed of those who are hurt and sad. Therefore, when you see the public image, you will cry again. The heart of pushing the public is rare, and I am willing to go from public to death. "(Wang Wen's Collection of Official Documents, Volume 50) This is a poem written by Wang Anshi to express his ambition by borrowing Du Fu's life's actions. Therefore, Cai Shangxiang said in Textual Research: "Li (wall) pays attention to the public and does not like Li Bai's poems, but respects Shaoling, so that his meal will never forget the gentleman and will always be among the people. "

For reference.