This was because the people of Ammon and Moab did not give food and water to the Israelites on their way out of Egypt. Instead, they paid money to Balaam to curse Israel, but our God turned the curse into a blessing.
“As I passed by again, I saw that the time had come for you to fall in love. I covered your naked body with my coat and promised to love you. Yes, I made a marriage covenant with you, and you became mine.” This is what the Sovereign Lord says.
My people, remember what King Balak of Moab planned to do to you and how Balaam son of Beor answered him. Remember the things that happened on the way from the camp at Acacia to Gilgal. Remember these things and you will realize what I did in order to save you.”
The Lord says to his people, “I have always loved you.” But they reply, “How have you shown your love for us?” The Lord answers, “Esau and Jacob were brothers, but I have loved Jacob and his descendants,
sent messengers to summon Balaam son of Beor, who was at Pethor near the Euphrates River in the land of Amaw. They brought him this message from Balak: “I want you to know that a whole nation has come from Egypt; its people are spreading out everywhere and threatening to take over our land.
The nation is like a mighty lion; When it is sleeping, no one dares wake it. Whoever blesses Israel will be blessed, And whoever curses Israel will be cursed.”
Because they reject the Good News, the Jews are God's enemies for the sake of you Gentiles. But because of God's choice, they are his friends because of their ancestors.
until we cross the Jordan River into the land that the Lord our God is giving us. The descendants of Esau, who live in Edom, and the Moabites, who live in Ar, allowed us to pass through their territory.’