Jesus received the classical education of the Roman upper class in Rome from 8 to 4 BC, along with
Herod’s sons Archelaus, Antipas and Philip: Ant. 17.1.3; Luke 2:41ff.; cf. Acts 13:1. The Herodian princes were sent to Rome to continue their education around 8 BC. I assume that Jesus was also sent to Rome to study with them.
Herod and his sons needed capable administrators and diplomats who were loyal to the king and his family. A good education would have been the prerequisite for Jesus’ later career.
The story of the twelve-year-old Jesus in the temple shows that traditions suggesting that Jesus was well-educated already existed.