A guardian was someone who watched over a child and enforced the parents’ rules so that the child would obey them.
"so that God would declare us to be righteous"