I'm a complete layperson but if the book is something the person was actually wanting to read and the wandering is involuntary, and it's a chronic pattern rather than just being temporarily stressed out/tired/etc, then I'd imagine inattentive ADD is a possibility.

Polly