I don't believe it provides merely an escape hatch from the world, I believe it enables us to stay IN the world.
It is true though, a lot of themes in literature, even in fiction, mirror what's going on in the real world. It's interesting seeing the patterns that happen in society and different books symbolize events that are happening.
I hope that's what you're getting at.
“Thoughts are the shadows of our feelings -- always darker, emptier and simpler.”
― Friedrich Nietzsche