Then John compares Christ to himself. First, he states the superiority of Christ as compared to himself. Secondly, he shows the greatness of this superiority.
He shows the superiority of Christ in comparison to himself both in preaching and in dignity. Now, as to the order of preaching, John was the first to become known. Thus he says, the one who is to come after me, to preach, to baptize and to die; because as was said in Luke (1:76): "You will go before the face of the Lord to prepare his way." John preceded Christ as the imperfect the perfect, and as the disposition the form; for as is sa...id, "The spiritual is not first, but the animal" (1 Cor 15:46). For the entire life of John was a preparation for Christ; so he said above, that he was "a voice that cries in the wilderness."
But Christ preceded John and all of us as the perfect precedes the imperfect and the exemplar precedes the copy: "If any one wishes to come after me, let him deny himself, and take up his cross, and follow me" (Mt 16:24); "Christ suffered for us, leaving you an example" (1 Pt 2:21).
Then he compares Christ to himself as to dignity, saying, who ranks ahead of me, i.e., he has been placed above me and is above me in dignity, because as he says (below 3:30), "he must increase, and I must decrease."
He touches on the greatness of his superiority when he says, the strap of whose sandal I am not worthy to unfasten. As if to say: You must not suppose that he ranks ahead of me in dignity in the way that one man is placed ahead of another, rather he is ranked so far above me that I am nothing in comparison to him. And this is clear from the fact that it is he the strap of whose sandal I am not worthy to unfasten, which is the least service that can be done for men. It is clear from this that John had made great progress in the knowledge of God, so far that from the consideration of God's infinite greatness, he completely lowered himself and said that he himself was nothing. So did Abraham, when he recognized God, and said (Gn 18:27), "1 will speak to my Lord, although I am but dust and ashes." And so also did Job, saying, "Now I see you, and so I reprove myself, and do penance in dust and ashes" (Jb 42:5). Isaiah also said, after he had seen the glory of God, "Before him all the nations are as if they are not" (Is 40:17). And this is the literal explanation.
This is also explained mystically. Gregory explains it so that the sandal, made from the hides of dead animals, indicates our mortal human nature, which Christ assumed: "I will stretch out my sandal to Edom" (Ps 59:10). The strap of Christ's sandal is the union of his divinity and humanity, which neither John nor anyone can unfasten or fully investigate, since it is this which made God man and made man God. And so he says, the strap of whose sandal I am not worthy to unfasten, i.e., to explain the mystery of the incarnation perfectly and fully. For John and other preachers unfasten the strap of Christ's sandal in some way, although imperfectly.
It is explained in another way by recalling that it was ordered in the Old Law that when a man died without children, his brother was obligated to marry the wife of the dead man and raise up children from her as his brother's. And if he refused to marry her, then a close relative of the dead man, if willing to marry her, was to remove the sandals of the dead man as a sign of this willingness and marry her; and his home was then to be called the home of the man whose sandals were removed (Dt 25:5). And so according to this he says, the strap of whose sandal I am not worthy to unfasten, i.e., I am not worthy to have the bride, that is, the Church, to which Christ has a right. As if to say: I am not worthy to be called the bridegroom of the Church, which is consecrated to Christ in the baptism of the Spirit; but I baptize only in water. As it says below (3:29): "It is the groom who has the bride."
Source: Commentary on John