Giving up office to live quietly in the country (
归隐) was a celebrated choice in traditional China, a sign that a scholar valued his integrity over rank.
陶渊明 is the model: he quit after some eighty days as a county magistrate rather than bow to a visiting inspector.