So, in order to placate our inability to please both flesh and spirit, we often give in to compromise. We pry the secateurs out of the Head Gardener's hands, and attempt to prune and shape the weeds of our sin, in order to limit its' damage.
He was wise enough to know that he had done wrong. Wise enough to know that God was upset with him, and that the Holy Spirit was convicting him of his wrong desires. But he wasn't mature enough to know what to do. His constant repenting for his wrong wasn't changing his desire to stop his actions.