Mary’s presentation was celebrated in Jerusalem in the sixth century. A church was built there in honor of this mystery. The Eastern Church was more interested in the feast, but it does appear in the West in the 11th century. Although the feast at times disappeared from the calendar, in the 16th century it became a feast of the universal Church.
As with Mary’s birth, we read of Mary’s presentation in the temple only in apocryphal literature. In what is recognized as an unhistorical account, the Protoevangelium of James tells us that Anna and Joachim offered Mary to God in the Temple when she was 3 years old. This was to carry out a promise made to God when Anna was still childless.
Though it cannot be proven historically, Mary’s presentation has an important theological purpose. It continues the impact of the feasts of the Immaculate Conception and of the birth of Mary. It emphasizes that the holiness conferred on Mary from the beginning of her life on earth continued through her early childhood and beyond.
Source: https://www.franciscanmedia.org/saint-of-the-day/presentation-of-the-blessed-virgin-mary
When the chosen time had come, then from the house and posterity of David, Joachim and Anna are chosen by God. Though they were childless, they were by their virtuous life and good disposition the finest of all those descended from the line of David. And when in prayer they besought God to deliver them from their childlessness, and promised to dedicate their child to God from its infancy, by God Himself, the Mother of God was proclaimed and given to them as a child, so that from such virtuous parents the all-virtuous child would be raised. So in this manner, chastity joined with prayer came to fruition by producing the Mother of virginity, giving birth in the flesh to Him Who was born of God the Father before the ages.
Now, when Righteous Joachim and Anna saw that they had been granted their wish, and that the divine promise to them was realized in fact, then they on their part, as true lovers of God, hastened to fulfill their vow given to God as soon as the child had been weaned from milk. They have now led this truly sanctified child of God, now the Mother of God, this Virgin, into the Temple of God. And She, being filled with Divine gifts even at such a tender age, … She, rather than others, determined what was being done over Her. In Her manner She showed that She was not so much presented into the Temple, but that She Herself entered into the service of God of her own accord, as if she had wings, striving towards this sacred and divine love. She considered it desirable and fitting that she should enter into the Temple and dwell in the Holy of Holies.
Now, brethren, let us remove ourselves from earthly to celestial things. Let us change our path from the flesh to the spirit. Let us change our desire from temporal things to those that endure. Let us scorn fleshly delights, which serve as allurements for the soul and soon pass away. Let us desire spiritual gifts, which remain undiminished. Let us turn our reason and our attention from earthly concerns and raise them to the inaccessible places of Heaven, to the Holy of Holies, where the Mother of God now resides.
Therefore, in such manner our songs and prayers to Her will gain entry, and thus through her mediation, we shall be heirs of the everlasting blessings to come, through the grace and love for mankind of Him Who was born of Her for our sake, our Lord Jesus Christ, to Whom be glory, honor and worship, together with His Unoriginate Father and His Coeternal and Life-Creating Spirit, now and ever and unto ages of ages. Amen. (St. Gregory Palamas)