A toddler has the duty to love God, and their parents, including obeying them and being open to education and training in the human virtues.

Those duties can't be performed if their life is at risk, no food, no parents.

So duties precede rights. 

Only in the last years have we flipped our understanding around making it more "rights grabbing"