Today is the feast of St. Anselm, Doctor of the Church. From
Cur Deus Homo 2.1:
It ought not to be disputed that rational nature was made holy by God, in order to be happy in enjoying Him. For to this end is it rational, in order to discern justice and injustice, good and evil, and between the greater and the lesser good. Otherwise it was made rational in vain. But God made it not rational in vain. Wherefore, doubtless, it was made rational for this end....Wherefore rational nature was made holy, in order to be happy in enjoying the supreme good, which is God. Therefore man, whose nature is rational, was made holy for this end, that he might be happy in enjoying God.