Perspective mostly. The wider the focal length the greater the perceived distance between objects front-to-back. A 50mm lens used to shoot a panorama should yield a rather natural looking view, while the same stitched view through, say, a 16mm lens might seem both stretched (L to R) and distant (F to B).