The manner of his testifying is presented as being certain, because based on sight. So he says, seeing Jesus walking by. Here it should be remarked that the prophets bore witness to Christ: "All the prophets bear witness to him" (Acts 10:43). So did the apostles as they traveled the world: "You will be my witnesses in Jerusalem and in all of Judea and Samaria, and to the remotest parts of the world" (Acts 1:8). However, their testimony was not about a person then visible or present, but on one who was absent. In the case of the prophets about one who was to come; in the case of the apostles, a...bout one who was now gone. But John bore witness when Christ was present and seen by him; and so he says, seeing Jesus, with the eyes of his body and of his mind: "Look on the face of your Christ" (Ps 83:10); "They will see eye to eye" (Is 52:8).
He says, walking, to point out the mystery of the incarnation, in which the Word of God assumed a changeable nature: "I came forth from the Father, and have come into the world," as it says below (16:28).
Then he gives John's testimony in saying, Look! There is the Lamb of God. He says this not just to point out the power of Christ, but also in admiration of it: "His name will be called Wonderful" (Is 9:6). And this Lamb did possess truly wonderful power, because being slain, it killed the lion—that lion, I say, of which it says: "Your enemy, the devil, goes about like a roaring lion, seeking whom he can devour" (1 Pt 5:8). And so this Lamb, victorious and glorious, deserved to be called a lion: "Look! The Lion of the tribe of Judah has conquered" (Rv 5:5).
The testimony he bears is brief, Look! There is the Lamb of God. It is brief both because the disciples before whom he testified had already been sufficiently instructed about Christ from the things they had heard from John, and also because this is sufficient for John's intention, whose only aim was to lead them to Christ. Yet he does not say, "Go to him," so that the disciples would not seem to be doing Christ a favor by following him. But he does praise the grace of Christ so that they would regard it as of benefit to themselves if they followed Christ. And so he says, Look! There is the Lamb of God, i.e., here is the One in whom is found the grace and the power which cleanses from sin; for the lamb was offered for sins, as we have said.
Source: Commentary on John