What are the functions of the first two sentences of the whole poem?

A sentence or two always begins with a poem. The first sentence explained the reason for his resignation, because his aloof temperament was contrary to the atmosphere of officialdom. (2) The second sentence explains the cheerful nature. (3) These two sentences express their feelings directly, which leads to Ersanlian's description of the leisurely and elegant life after resigning; Echoing the tail couplet, it paves the way for expressing the feelings of attachment to the court and courage to take responsibility.