To entertain. The books are literally a fantasy series. I suppose it also helped her through her depression and such, but her actual purpose was to entertain and teach some morals suck as the importance of friendship.
The person above me took the words right out my mouth lol