My soon to be sister-in-law asked this exact question last Sunday. To understand, we must look back at where sin started, in the Garden of Eden. When God created Adam, he gave the command to never touch the fruit from one specific tree.
Genesis 2:16-17, "And the Lord God commanded the man, "You are free to eat from any tree in the garden; but you must not eat from the tree of knowledge of good and evil, for when you eat from it you will certainly die."
Then God created Eve from Adam. Later, the serpent approached Eve and convinced her to take a bite of the forbidden fruit; and she shared it with her husband. Although Eve was the first to take a bite of the fruit, it was Adam who brought sin into the world as he was the one who God commanded. It was his job to lead Eve away from the serpent and follow the command, yet he gave into temptation.
Now, how does this have to do with the original question? Jesus was born from the Holy Spirit and Mary, no seed from Adam was present. Since sin comes from Adam, yet his seed had nothing to do with the birth of Jesus, Jesus is pure of sin.
Any questions or comments you would like to add? comment them!