It keeps you motivated to continue fighting for the marriage, when you see improvements, and it makes you patient, because you feel like your patience is being rewarded with the small improvements
Be careful when looking for those small improvements. What I thought were small improvements in my ex were actually her getting more comfortable in what she thought was a friendship.
There are moments in this life when you are so confident in the rightness of your actions, that not even for a second do you consider the option that you might be wrong.