The connection is as follows: love consists in our keeping His commandments, because everyone born of God overcomes the world. Since the apostle pointed to the keeping of the commandments as the full proof of love for God, and some thought that God's commandments were burdensome, he says: and His commandments are not burdensome. For what is burdensome in loving one's brother? What, for example, is burdensome about visiting a prisoner in jail? For the command is not to release him from jail, which would be difficult, but only to visit him. And regarding the sick, the command is not to free them... from illness, but only to visit them. And regarding the hungry, the command is not to set before them a table of many dishes, or to give the naked clothing made of precious fabric, but to provide what is most urgently needed, which the hungry and the naked seek. Having said this, he points to another incentive for love. What is it? Victory. He says that by making yourselves children of God through love for your brother, you already have a reward for this good quality — victory over the world; for the one born of God overcomes the world. Then he explains what the victory consists of and through what it is accomplished; he calls both the one and the other faith, that is, faith in God, which, having been born of God, conquered and drove away every unbelief, and neither Jew, nor Greek, nor heretic is strong against it. And since faith conquers not alone, by itself, but together with the one who possesses it, he adds: and who is it that overcomes the world, if not the one who believes that Jesus is the Son of God? And who is this Jesus? Jesus Christ, who came by water and blood.
Source: Commentary on 1 John