It was not because of anything they did but because of God's choice. So Rebekah was told, "The older son will serve the younger one." (Genesis 25:23)