According to Matthew Henry's Commentary, John 1:29-36
"Verse 29-36 - John saw Jesus coming to him, and pointed him out as the Lamb of God. The paschal lamb, in the shedding and sprinkling of its blood, the roasting and eating of its flesh, and all the other circumstances of the ordinance, represented the salvation of sinners by faith in Christ. And the lambs sacrificed every morning and evening, can only refer to Christ slain as a sacrifice to redeem us to God by his blood. John came as a preacher of repentance, yet he told his followers that they were to look for the pardon of their sins to Jesus only, and to his death. It agrees with God's glory to pardon all who depend on the atoning sacrifice of Christ. He takes away the sin of the world; purchases pardon for all that repent and believe the gospel. This encourages our faith; if Christ takes away the sin of the world, then why not my sin? He bore sin for us, and so bears it from us. God could have taken away sin, by taking away the sinner, as he took away the sin of the old world; but here is a way of doing away sin, yet sparing the sinner, by making his Son sin, that is, a sin-offering, for us. See Jesus taking away sin, and let that cause hatred of sin, and resolutions against it. Let us not hold that fast, which the Lamb of God came to take away. To confirm his testimony concerning Christ, John declares the appearance at his baptism, in which God himself bore witness to him. He saw and bare record that he is the Son of God. This is the end and object of John's testimony, that Jesus was the promised Messiah. John took every opportunity that offered to lead people to Christ."