The joke is a play on words.  Magicians are known for illusions of 'turning' something into something else--transforming it.  To 'turn into' something can also mean taking a turn while traveling and go inside a place or in a different direction. The original sentence sounds like the magician transformed into a drug store when they probably just entered it.
The other day I saw a magician walk down the street and turn into a drugstore .