Horn of Salvation and Symbol of Chastity

The unicorn represents “our Lord’s Incarnation and sinless life”—a symbol of Jesus Christ and of purity. How did the unicorn come to be associated with Christ and purity?