You can leave Wizard City in Wizard101, but only after you've completed it. Once you finish, speak with Merle Ambrose in his office and he'll open up the Spiral chamber for you. From there, you can travel to other worlds such as Krokotopia, Marleybone, Mooshu, Grizzleheim, and Dragonspyre, with more worlds added over time.