Ok let me try to explain this as simply as possible.
Literature conveys ideas and views on society. In turn, the reader shapes their own opinions of these ideas and views. As such, the reader perceives society in a manner that is partially shaped or influenced by what they have read/seen etc...