Since the verse says that Adam and Eve hid themselves from God. But this is with respect to Adam and Eve, not God. It’s just a literary device to point that out.
3:22 And the LORD God said, “The man has now become like one of us, knowing good and evil. He must not be allowed to reach out his hand and take also from the tree of life and eat, and live forever.”
