The girl will marry a man who (riding on a horse or otherwise) would quickly reach a place that is almost inaccessible (the top of a tower, a mountain, the upper floor of a palace, the top of a staircase, bridge, the bottom of a deep cavity, etc.). Usually the girl herself is in the corresponding place