God saved us and chose us to be his holy people. We did nothing to deserve this, but God planned it because he is so kind. Even before time began God planned for Christ Jesus to show kindness to us.
This happened because of God's undeserved kindness and not because of anything they have done. It could not have happened except for God's gift of undeserved grace.
Even before they were born or had done anything good or bad, the Lord told Rebekah that her older son would serve the younger one. The Lord said this to show he makes his own choices and it wasn't because of anything either of them had done.