When people traveled to the festivals in Jerusalem, they would do so as a community en masse, with the women and children leading the way in order that none would be left behind. I think there's something in that for us to consider in the realm of church life, as we must not leave behind any who are younger in age or younger in the Lord on our journey toward heaven.
However, thinking Jesus was traveling with His cousins or other members of the extended family, Mary and Joseph were unaware He had remained in Jerusalem.
Under the inspiration of the Spirit, Luke is careful to refer to Mary as Jesus' mother, but not to Joseph as His father.