Commonly, the word "wizard" means "someone who practices magic; a sorcerer or magician." FreeDictionary
In software wizard is "an user interface type that presents an user with a sequence of dialog boxes that lead the user through a series of well-defined steps" Wikipedia
These two things seem not related at all to me, so I wonder why "wizard" was used and not any other word?