Indeed God had a great work which He needed to do for Jonah. He was seeking Jonah's salvation also, lest when he had preached to others, he himself should become disqualified before God (1Cor.9:27). This person who preached repentance to people, needed himself to repent also. He needed to rid himself of his obduracy, pride and self-esteem. As is always God's way