They are young adult fiction, which is like saying that cars weren't built for driving. I'm not sure what you intend they were written as then, as they surely aren't literature.
Notice how they’re almost all divided into very episodic chapters. That’s because children’s novels are generally built for reading maybe a chapter or two at a time. Maybe before bed or during reading time in a classroom.
Also those books are very much literature.