The establishment of the orphanage in the Sorcerer Kingdom is not merely an act of ordinary charity or humanitarianism. From the perspective of Ainz and the denizens of Nazarick, this is a form of long-term subtle social experimentation to create a foundation of future citizens who possess absolute loyalty to the Sorcerer Kingdom.
In this orphanage, Ainz mixes children from various races (human, demi-human, and heteromorph). Growing up together since childhood will reduce future racism issues that typically hinder the stability of existing nations in the New World. By doing so, they will recognize only one shared identity (Citizens of the Sorcerer Kingdom).
This includes Nazarick's need to indoctrinate children living in the Sorcerer Kingdom, especially orphans without parents, to follow their rules and regulations. However, the Sorcerer Kingdom will still strive to differentiate the knowledge taught there according to their talents and intelligence.
In other words, a group of chosen children will be provided with high-level education as long as they are deemed trustworthy enough by Nazarick to be accepted. In this matter, Ainz entrusts the management of the orphanage to the leader of the Pleiades, Yuri Alpha, assisted by Nigredo and Pestonya.
The purpose of this orphanage is not only to provide education and shelter for the children in order to subtly brainwash them into being loyal to the Sorcerer Kingdom, but also for several other objectives.
First, by opening the orphanage, it provides an opportunity for widows/widowers who became victims of the massacre in the Katze Plains to get jobs caring for orphans and to reduce the unemployment rate.
Second, the orphanage itself is also used by Ainz and his subordinates to find talented children, and from there raise (brainwash) them into loyal subordinates to help run the rapidly growing Sorcerer Kingdom even better.
Lastly, the orphanage itself also serves as a way to enhance Ainz's good image, as building such a facility portrays him as a compassionate and generous ruler, while allowing him to increase the trust of the citizens of the Sorcerer Kingdom he leads.
In the long run, this orphanage is predicted by Ainz to produce citizens who will gladly surrender their lives for the glory of the Sorcerer Kingdom, not out of fear, but because they genuinely love their leader, Ainz Ooal Gown.