Above, the Lord gave us his teaching on spiritual regeneration in words, here he completes his teaching through action, by baptizing. First, two kinds of baptism are mentioned. Secondly, a question about their relationship is raised (v 25). As to the first, two things are done. Mention is first made of the baptism of Christ. Secondly, of the baptism of John.
He says first, After this, i.e., the teaching on spiritual regeneration, Jesus and his disciples came to Judean territory. There is a question here about the literal meaning. For above, the Evangelist had said that the Lord had come from ...Galilee to Jerusalem, which is in Judean territory, where he taught Nicodemus. So how, after teaching Nicodemus, can he come into Judea, since he was already there?
Two answers are given to this. According to Bede, after his discussion with Nicodemus, Christ went to Galilee, and after remaining there for a time, returned to Judea. And so After this Jesus and his disciples came to Judean territory, should not be understood to mean that he came into Judea immediately after his talk with Nicodemus. Another explanation, given by Chrysostom, is that he did come into the territory of Judea immediately after this discussion: for Christ wanted to preach where the people gathered, so that many might be converted: "I have declared your justice in the great assembly" (Ps 39:10); "I have spoken openly to the world" (below 18:20). Now there were two places in Judea where the Jewish people gathered: Jerusalem, where they went for their feasts, and the Jordan, where they gathered on account of John's preaching and his baptism. And so the Lord used to visit both places; and after the feast days were over in Jerusalem, which is in one part of Judea, he went to another part, to the Jordan, where John was baptizing.
As for the moral sense, Judea means "confession," to which Jesus came, for Christ visits those who confess their sins or speak in praise of God: "Judea became his sanctuary" (Ps 113:2). He stayed there, because he did not make a merely temporary visit: "We will come to him, and make our abode with him," as it says below (14:23). And was baptizing, i.e., cleansing from sin; because unless one confesses his sins he does not obtain forgiveness: "He who hides his sins will not prosper" (Prv 28:13).
Source: Commentary on John