Prophets do not automatically know everything; they also learn line upon line. Compare commentary at Alma 7:8.