When Jesus was born in Bethlehem of Judea, in the days of King Herod, behold, magi from the east arrived in Jerusalem, saying, "Where is the newborn king of the Jews? We saw his star at its rising and have come to do him homage." When King Herod heard this, he was greatly troubled, and all Jerusalem with him. Assembling all the chief priests and the scribes of the people, he inquired of them where the Messiah was to be born. They said to him, "In Bethlehem of Judea, for thus it has been written through the prophet: 'And you, Bethlehem, land of Judah, are by no means least among the rulers of Judah; since from you shall come a ruler, who is to shepherd my people Israel.'" Then Herod called the magi secretly and ascertained from them the time of the star's appearance. He sent them to Bethlehem and said, "Go and search diligently for the child. When you have found him, bring me word, that I too may go and do him homage." After their audience with the king they set out. And behold, the star that they had seen at its rising preceded them, until it came and stopped over the place where the child was. They were overjoyed at seeing the star, and on entering the house they saw the child with Mary his mother. They prostrated themselves and did him homage. Then they opened their treasures and offered him gifts of gold, frankincense, and myrrh. And having been warned in a dream not to return to Herod, they departed for their country by another way. (Mt 2:1-12)
Jesus was born a Jew. And he was revealed to the shepherds first. Jews were shepherds by profession: Abraham was a shepherd; Moses was a shepherd; David was a shepherd and all. So by revealing the birth of Jesus to shepherds was symbolic of revealing him to the whole of the Jewish community. This indirectly would mean that Jesus himself would be a shepherd. He spoke about himself as a ‘good shepherd’.
The Magi from the east coming to see the new born implies that his birth had a global significance. He had some relevance for the others also. They come with the idea that they have seen the star of a king. They asked for a new born king. By birth he was a shepherd and he was also a king: a shepherd king.
The Gospel writer also presents the thought pattern of his time by writing about the star. The people of that time believed that whatever happened on earth had its symbolic significance in the heavens. Every birth, every major event was shown through some signs in the heaves. Heaven and earth were together formed one single unit. Jesus who was born a shepherd king had the approval in the heavens.