That's why photos from different Mars landers look often very similar - the regions they have landed in have been effectively selected to be similar. :) And of course these pictures shape how Martian surface looks like the public consciousness.
Things may be changing though, with the technology being developed for active obstacle avoidance, that might enable martian landers to land in a more complex terrain safely by analyzing the actual landing site and landing on a safe spot.
Still, you might still want some flat area near an early martian base/city, even just to make trucking stuff from/to landers that strayed of course during landing easier. Eq. not having one in the middle of a rock field and another on crater bottom. :)
Cities on Earth are generally not being in canyons either, even though that would give you "walls for free" as well.
Cities on Earth don't need to be protected from toxic soil and hard UV radiation. Instead, most cities on earth have been built near rivers for cheap transportation. Castles and fortifications are built on hills for defensive value.
Cover a canyon (walls for free). Use lava tubes. Or search for any peculiar geological feature that is amendable. I don't get why the assumption is a completely flat, desert surface.