In the game itself, there is no explanation to the source of the magic. It is, however, another good example of how the game provides the player with different ways to handle a situation or puzzle (do you help or attack the fox) which really made the game stand out.