However, there are several reasons why he eventually transitioned to writing children's books:
* Personal experience: Dahl's own childhood experiences, particularly his time at boarding school, heavily influenced his writing. He often wrote about children facing difficult situations and finding their own ways to overcome them.
* Inspiration from his daughters: Dahl's daughters, Olivia and Tessa, were his primary inspiration for writing children's books. He wrote stories for them and eventually realized that his tales had a wider appeal.
* Desire for something different: Dahl was tired of the typical "proper" children's books of the time. He wanted to create something different, something that would capture the imagination of children while still being engaging and entertaining.
* Success of "James and the Giant Peach": Dahl's first children's book, "James and the Giant Peach", was a critical and commercial success. This encouraged him to continue writing for children, which he did for the rest of his career.
Overall, Roald Dahl's transition to children's books was driven by a combination of personal experiences, inspiration from his daughters, a desire to create something new and different, and the success of his initial foray into the genre.