According to this passage, Nephi seems to imply that his being young and his desire to learn God’s mysteries caused him to pray. He also seems to imply that those two things, along with his praying caused the Lord to visit him and soften his heart, which in turn caused him to believe everything his father had said.