You ever smoke pot as a kid and then run into your parents. And you just know they know you're high?
That's what happened there. Their eyes were opened and they were suddenly ashamed that they were completely bare (literally and figuritively) before God. They knew they he knew and they were terrified and hid.