Children are the future of this planet. We, the people of today's generation, are responsible for bringing them up well so that they can be capable of taking the right decisions tomorrow.
Children have clay like minds which need to be suitably moulded in order to ensure that they grow up to be good human beings. They are curious and observant by nature and they even notice little things which their guardians tend to do subconsciously.
Parents, as the people who bring them into this world, are primarily responsible for their children.
In the event that the parents have passed away, it is the moral duty of the relatives of the child- be it on the paternal or maternal side to take care of him/her. An orphanage is a last option, if there is no one available to take the child under their wing.
Every child has a right to all basic necessities of life such as food, clothing, shelter and education.
Children need to know that someone cares for them - they shouldn't be victims of abuse and neglect which might eventually force them to take the wrong path later in their life. After all, not all the people rotting in jail are born criminals. In many cases, circumstances force them to resort to nefarious means to earn their livelihood.