Historically it was very often the church or the state who cared for orphans. Children in orphanage may often suffer from child abuse or trauma to be left by parents. In some cases; some parents aren't able to house the children.