This is what God did for physical Israel.
However, on the other side of the covenant, the bride was not to be trusted to remain faithful to Him.
The chapter then goes on in detail to number all the acts of harlotry and adultery there were caused against a faithful God by faithless people, by His physical bride in the nation of Israel, those that He had called out and set apart. This is a very stern example to us that we should be mindful of as we are here to be trained to be the spiritual bride of Christ.