Different family backgrounds have different experiences. Although he is in the same dynasty, Li Bai is lucky, because life is not too bitter, which makes him chic and romantic, so he is a romantic. Du Fu's life is a bit bumpy, that is, the children of poor families have been masters since childhood, and they also know how to be considerate of others, so they will be sympathetic to the people's feelings and worry about the country and the people.
This is related to personality.