Well, they certainly seem illogical if we try to apply the rules of this world, the physical world, to them. But there are other logics, rules and maps for reality, just as what may seem like nonsense to one person is, in fact, another person’s language.
We in the Western world have become very used to operating with only the most physical/literal of languages – logic and reason. But we weren’t always so limited in our understanding of realities – perhaps fairy tales are a call, reminding us of other ways of knowing, seeing and telling the world….?