One possibility is that the comma is helping remove a potential ambiguity because "as" can have at least three different meanings here:
- Because. e.g. "I didn't give him a cookie as he'd already eaten forty-seven of them!"
- For as long as. e.g. "We told stories and sang songs as we drove to grandma's house."
- While. "We sat and watched the stars as the world turned beneath us."
The second and third are, of course, very similar in that they both denote one thing happening at the same time as another. The difference is a contextual one, but it is that 2 means the first thing happened at the same time as the second, but only at that time, whereas 3 suggests that the person concerned is merely noticing or commenting on the fact that the two things are happening together, but that in fact it's just a coincidence (or at least, of no significance given the context).
So, to the text you provided. Without the comma, the relevant portion is:
[The book] Harry Potter will not disappoint you as it takes place in a medieval world...
The corresponding three different ways of reading that are:
- The book won't disappoint you because the story it tells takes place in a medieval world (but had it taken place in a futuristic Star Trek-like world, or in a prehistoric dinosaur-filled world, then maybe it would disappoint you.)
- The book won't disappoint you for as long as it takes place in a medieval world (but mark my words, the second it stops taking place in such a world...well, then it'll be Disappointment City!)
- The book won't disappoint you, period. Oh, by the way, at the same time that it's not disappointing you, it'll be taking place in a medieval world. So, no-disappointment, and medieval setting, all in the same book. How cool is that!
The comma may be trying to emphasize that the meaning is 1, and not 2 or 3. Context would make it hard to actually make an error there, but maybe the person is just trying to make sure.