and when they had fulfilled the days, as they were returning, the boy Jesus stayed behind in Jerusalem. Joseph and his mother didn't know it,
So here in the prophecy it was to be a light, not just to Israel alone, but to the world, to the gentiles.