They referred this issue to John; hence he says, They went to John. If we examine this closely, we see that they were trying to incite John against Christ. Indeed, they are like the gossip and the double-tongued: "Those who gossip and are double-tongued are accursed, for they disturb many who are at peace" (Sir 28:15).
So they bring up four things calculated to set John against Christ. First, they recall the previous unimportant status of Christ. Secondly, the good John did for him. Thirdly, the role which Christ took on. Fourthly, the loss to John because of Christ's new role.
They recall C...hrist's unimportance when they say, the man who was with you, as one of your disciples; and not the one you were with as your teacher. For there is no good reason for envy if honor is shown to one who is greater; rather, envy is aroused when honor is given to an inferior: "I have seen slaves on horses, and princes walking like slaves" (Ecc 10:7); "I called my servant, and he did not answer me" (Jb 19:16). For a master is more disturbed at the rebellion of a servant and a subject than of anyone else.
Secondly, they remind John of the good he did Christ. Thus they do not say, "the one whom you baptized," because they would then be admitting the greatness of Christ which was shown during his baptism when the Holy Spirit came upon him in the form of a dove and in the voice of the Father speaking to him. So they say, the one of whom you have given testimony, i.e., we are very angry that the one you made famous and admired dares to repay you in this way: "The one who ate my bread has lifted his heel against me" (Ps 40:10). They said this because those who seek their own glory and personal profit from their office become dejected if their office is taken over by someone else.
And so thirdly, they even add that Christ took over John's office for himself, when they say, he is here baptizing, i.e., he is exercising your office; and this also disturbed them very much. For we generally see that men of the same craft are envious and underhanded with respect to one another; a potter envies another potter, but does not envy a carpenter. So, even teachers, who are seeking their own honor, become sad if another teaches the truth. In opposition to them, Gregory says: "The mind of a holy pastor wishes that others teach the truth which he cannot teach all by himself." So also Moses: "Would that all the people might prophesy," as we read in Numbers (11:29).
Yet they were not satisfied with merely disturbing John, rather they report something that should really excite him, that is, the loss that John seemed to be having because of the office Christ took over. They give this when they say: and all the people are flocking to him, i.e., the ones who used to come to you. In other words, they have rejected and disowned you, and now are all going to his baptism. It is clear from Matthew (11:7) that they used to go to John: "What did you go into the desert to see?" The same envy affected the Pharisees against Christ; so they said: "Look, the whole world has gone after him" (below 12:19). However, all this did not set John against Christ, for he was not a reed swaying in the wind, and this is clear from John's answer to their question.
Source: Commentary on John