I learned to write by reading the kind of books I wished I'd written.
I think that when people read fiction, they're really reading for wisdom. I am. That's what most of us really love. If we read a novel that rocks our world, it's because there's something in it that we didn't know already. Not just information but really wisdom - sort of what to do with our information. And wisdom comes from experience.
If someone does learn about the world from reading a novel of mine, that makes me very happy. It's probably not what brings me into the novel in the first place - I usually am pulled in by some big question about the world and human nature that I'm not going to resolve in the course of the novel. But I'm very devoted to getting my facts straight.