Because at that time, God did forbid the gospel from going out to non-Jews, but because the Jews rejected their messiah, the gospel went out to the gentiles.
Ro 1:16 ¶ For I am not ashamed of the gospel of Christ, for it is the power of God to salvation for everyone who believes, for the Jew first and also for the Greek.
The Gospel is the death, burial and Resurrection of Jesus Christ.
**The Jews were Jesus’s people. After the resurrection of Jesus and the rejection by the Jews of the gospel, the gospel went out to the gentiles. **
After Jesus rose from the dead and just Before Jesus ascended up into heaven He said:
Mr 16:15 And He said to them, "Go into all the world and preach the gospel to every creature.
Mt 28:19 "Go therefore and make disciples of all the nations, baptizing them in the name of the Father and of the Son and of the Holy Spirit,“teaching them to observe all things that I have commanded you; and lo, I am with you always, even to the end of the age.” Amen.
So is this is not contradiction that at one place Jesus (Peace be upon him) saying his people not to preach someone and then saying preach everyone?..OK I wont make much fuss about this as I dont have any intension of puting allegation on Holy Bible. (I accept Bible verses as long as they dont contradict Holy Quran).