The alternate here is that Harry Potter is written with sentences that match the typical patterns of English and so, when you prompt with a part of the text, the LLM can complete it with above-random accuracy
EDIT Actually, on rereading, I see I replied to the wrong comment.