I'll add two other reasons. Sidewalks dip up and down for every driveway and intersection. In a residential area where every house's driveway cuts through the sidewalk, that gets old real fast and can lead to jarred knees or turned ankles if you're not careful. The second reason is trees. In my town, many of the sidewalks have low hanging trees over them.