His parents went every year to Jerusalem at the feast of the Passover.
So that this was a voluntary thing in Mary; which discovers her piety and religion, and her great regard to the ordinances and appointments of God.