Many climbers have a fear of hights. Climbing can be a way to get comfortable with it.
I think that a better way to express it for many people is we're not afraid of heights, we're afraid of falling and dying. Removing the falling aspect "cures" the phobia.