I believe that Lucifer-Satan had a discussion after God created man and woman, and it went something like this.
God announces to the angels of heaven that he created man and woman.
Lucifer asks why?? and God responds so that they will love me and worship meaccording to my will.
Lucifer, being jealous and envious of God, wishing to be God himself, asks;
"Will these humans love you and obey you, because you created them and expect it from them?"
God replies "YES" I am their creator, I am their God.
Lucifer then tells God,
"Then this is not 'True Love' for it to be true love, rather than blind obedience to their God their creator, they must have the right to choose to love you."
God responded; "Then they will choose whether to love me or not,whether to obey me or not.
I believe that this is how "Free Will" came to be.