Revelation is how God has communicated truths to people, who otherwise would not know them. The story of creation in Genesis 1 and 2 is a good example of this. As humanity was not created until the sixth day, it must have been God who revealed the knowledge about what occurred on the first five days to the author of Genesis, or it would not be possible to know what occurred.