All children have the right to have shelter. When children are homeless,  the government  helps them. They send a person to talk  with the child and that person decides whether they need to go to foster care or stay at an orphanage. If they do, the  government sends the child to foster care.

Once the child is at foster care, the people will take care of them. Sometimes the child will stay for different times, sometimes long, sometimes short.The person at the foster care will take good care of them until  someone wants them or their mom gets them.

That means they take care of them and that is how works.