And that was so Eve could see the serpent for what he was. Evil.
Without that ability, the lord of lies could easily have said that he was of God and she must do as he says. She never would have known the difference.
The Lord our God knew this and thus did he create the Tree of Knowledge.
If Satan had said that He was of God and that she must do as he says, all she would have to have done is say to him the following:
“God will show up “in the cool of the evening” to walk with Adam as He always does. We will wait until then to ask God what he has to say about what you (the serpent) are saying. Then we will know if there is any difference in what you and He are saying and have said.”
And then she could turn back to her original point: “If what you (the serpent) is saying is true, then why did God create the tree in the first place?”