God took an oath so we would have good reason not to give up. We have run away from everything else to take hold of the hope offered to us in God's promise. So God gave his promise and his oath. Those two things can't change. He couldn't lie about them.