"Let a righteous man strike me—that is a kindness; let him rebuke me—that is oil on my head. My head will not refuse it, for my prayer will still be against the deeds of evildoers." Psalm 141.5
A righteous person teaches and those who are also righteous learn. For them, although the learning process may be painful or feel like an act of injustice, they know it is for their own good and accept it with gratitude.
But it is not so with the wicked, that is, those who are born of the flesh. They feel it as injustice, complain, get hurt, angry, do not accept it and even want revenge. But it is only natural, after all, the darkness hates the works of the light.