Joseph also went up from Galilee, out of the city of Nazareth, into Judea, to the city of David, which is called Bethlehem, because he was of the house and family of David;
So here in the prophecy it was to be a light, not just to Israel alone, but to the world, to the gentiles.