Then he gives the reason for his joy, because I am not glad that you were made sorrowful, but at the effect, namely, your amendment, because you were grieved not unto despair, but you were grieved into repenting; just as a physician is not glad at the bitterness of the medicine, but at the effect, namely, health: "As sorrowful, yet always rejoicing" (2 Cor. 6:10).
Having mentioned the comfort the Apostle and Titus experienced at the grief of the Corinthians, because it ended in repentance and not in despair, he now gives the reason for his comfort by commending their sorrow. In regard to this... he does two things. First, he commends their sorrow; secondly, from this he concludes to his intent (v. 12). In regard to the first he does two things: first, he commends their sorrow on the part of its cause; secondly, on the part of its effect (v. 10).
The cause on account of which he commends their sorrow is that it was according to God. Therefore he says: although for a time I was sorry for the epistle, nevertheless I rejoice now, for you felt a godly grief. Here it should be noted that sorrow and joy and generally every emotion arise from love; for a person is sad when he lacks what he loves. The kind of love determines the kind of sorrow it causes. But there are two kinds of love: one by which God is loved, and from this arises a sorrow which is according to God; the other is that by which the world is loved, and from this arises a worldly sorrow. The love by which we love God makes us serve him gladly, honor him carefully and set some time apart for God joyfully. But because sin hinders us from serving God, we devote no time to him or seek his honor, the love of God causes sorrow for sin: and this is sorrow according to God. This sorrow was not in you to produce evil and loss, but fruit and merit. Hence, he says, that you suffered no loss through us, because you profit not only from the good and pleasant things we bestow on you, but also from the fact that we correct and sadden you: "For the moment all discipline seems painful rather than pleasant; later it yields the peaceful fruit of righteousness to those who have been trained by it" (Heb. 12:11).
Source: Commentary on 2 Corinthians