God made a promise to Abraham. Since he had no one greater on whom to base his oath, he based it on himself.