Original: It was written as fiction for readers of all ages, but in recent decades has been considered a children's book.
Simplified: It was written as fiction for readers of all ages, for a few decades has been classified as a children's book.