If Moshe Rabbeinu was taught the entire Torah on Mt. Sinai (Rashi on Vayikra 25:1, Rambam), how do we explain events such as the incident involving the Bnos Tzelafchad (Bamidbar 27:1-11), or the tamei people who wanted to bring the Korban Pesach (Bamidbar 9:1-14), where Moshe evidently did not know the end of the story as recorded in the Torah?