Uphill walking was used as punishment, to treat disease, and evolved into a heart-health test. Here's why incline walking persists today.