Certain places are easy to cover on foot, such as The Bund and Nanjing Road. But Shanghai is huge and there can be large distances between places. Given how cheap and quick the metro is, it makes for an easy and convenient choice over long walks. Especially in the heat of summer or cold of winter.