The point of books is to combat lonliness — David Foster Wallace

I wonder did he mean the point of reading books or the point of writing books? Whichever, I think it’s a very good point. But not the only point. Or is it, if it’s noncompulsory (sp?) reading? Curiosity, escapism, inspiration, exploration. Are these also tools to combat lonliness?