In Brazil (and probably elsewhere in South America), real estate values go down (and thus crime goes up) the higher you go on the hills. Basically, this is because walking up and down the hills is arduous and sucks, and thus people try to avoid living on the hills if they possibly can. Thus you end up with favelas.
If everyone had cars, or public transit, you would probably see better property values on hills, like you do in SF.
If everyone had cars, or public transit, you would probably see better property values on hills, like you do in SF.