Alice's Adventures in Wonderland and Through the Looking-Glass are often thought of as "philosophical" fantasies. In fact, these books offer no specific coherent philosophy of life. They do, however, have a veneer of philosophy in their approach to intellectual matters. Often this philosophical attitude is depicted through characters who seem out of touch with the real world. Many of the more philosophical-sounding statements made in the books are nonsensical and seem to poke fun at readers who try to take them too seriously. The only consistent philosophy here seems to be that life is absurd and resists a moralistic interpretation.
Alice's adventures show her that life itself is absurd; all that she can do is try to find enjoyment in the things around her.
Alice has a secret craving for organization and meaning, and when the things around her are nonsensical she is irritated and frustrated.