There are many answers to that, but what convinces me the most is the idea that God did not want automatons. He wanted sons who respond to Him lovingly from the heart and not out of obligation.
His love is free. He wants our love to be free as well.
There is a Star Trek Voyager episode that I like. In it the idea of human beings not being automatons is clearly portrayed.
In it the Doctor decides to create a family for himself on the holodeck. It is the perfect family. An adoring wife. Two perfect children - one boy and one girl. He thinks that this is how he will learn what it is like to be human and to live in a real family.
Belona bursts his happy little balloon by informing him in no uncertain terms that no real family is like that at all. Families have conflicts that they have to work through. Human beings are not robots, so they cannot be programmed to act the way the Doctor wants them to.
See where I am going with this?
So, he recreates his family, giving them free will. The results cause lots of conflict and pain. In the end, though, it is love that prevails. It is because of the conflict, pain, and tragedy that real love is able to flourish.
Of course, each one had to choose to respond to the tragedy in love. The tragedy is what makes them see that the only thing that really matters is the love they share for one another.
Yeah, it’s just a television show. It’s fantasy. However, there is a lot of truth and wisdom in it.
In a similar way, our Creator took a huge risk when He gave man free will. This episode in Star Trek may help someone else see why He did that.
---------------------------------------------------