Orphan school

An orphan school is a secular or religious institution dedicated to the education of children whose families cannot afford to have them educated. In countries with universal public education systems, orphan schools are no longer common.
Orphan Schools in the United States.
The casualties of American Civil War did more than simply reduce the male population of the country, they also dramatically increased the number of widows and orphans. Many states reacted to the crisis by erecting new (or taking over existing) buildings to "care for, educate and train the children of fallen soldiers."
Orphan Schools in Ireland.
See Industrial school