Free will is like giving away sovereignty. When this happens, you have self-rule and the giver takes a risk because the choices that the new entity makes may not necessarily line up with the will of the one who gave the free will or self-rule in the first place.
But as the saying goes, “if you love something, set it free”.
God gave us the ability to chose for ourselves because he loves us. Love without choice is not love. Love needs choice.
This is why God gave the first man and woman the Tree of Life and the Tree of Good & Evil.
This was about giving us choice and as long as we chose to eat from the Tree of Life and rejected the other tree, we were choosing God.