 He was a baby at one point. He had to learn. And the Bible says he was learned or he had grown in wisdom. You don't grow in wisdom because you're just standing around. Jesus had to study the Torah, the prophets. He had to worship, praise, marry them, taught him how to do these things.