Man was made in the image of God. Man is “most perfectly like God according to that in which he can best imitate God in his intellectual nature.” Man possesses “a natural aptitude for understanding and loving God; …] which is common to all men.”
The Catechism of Pope St Pius X:
34 Q. Why do we say that man was created to the image and likeness of God?
A. We say that man was created to the image and likeness of God because the human soul is spiritual and rational, free in its operations, capable of knowing and loving God and of enjoying Him for ever — perfections which reflect a ray of the infinite greatness of the Lord in us.
Man’s last end, his ultimate purpose, is to know and love God. We must communicate with those whom we love and want to know better. God is entitled to our thanks, praise, and adoration.
“If, therefore, we speak of man’s last end as of the thing which is the end, thus all other things concur in man’s last end, since God is the last end of man and of all other things. If, however, we speak of man’s last end, as of the acquisition of the end, then irrational creatures do not concur with man in this end. For man and other rational creatures attain to their last end by knowing and loving God: this is not possible to other creatures, which acquire their last end, in so far as they share in the Divine likeness, inasmuch as they are, or live, or even know.” - St Thomas Aquinas, Summa Theologica, Prima Secundæ Partis Q1 A8