I don't get the point of structuring a textbook in this way. It seems like a huge waste of time if you just want to quickly learn some stuff.

If I were a child, I would absolutely detest having learning material wrapped up in a story like that (with the obvious exception of learning about literature itself).