This question already has an answer here:
Most books are written in such a way that everything that the author wants to communicate is spelled out clearly. The Torah is not such a book. Talmudical hermeneutics (for instance, the 13 rules of Rabbi Ishmael) are necessary to understand what the Author wanted to communicate with respect to halacha. My question is why was the Torah written in such a fashion?