Another interpretation: why was the Torah compared to a fig? Because all other fruits have some waste in them. Dates have pits, grapes have seeds, pomegranates have rinds—but the fig is entirely good to eat. So too the words of Torah have no waste in them, as it is said, "For it is not an empty thing for you" (Deuteronomy 32:47).
Why the Torah Is Compared to a Fig
Yalkut Shimoni on Nach 2:2
דבר אחר למה נמשלה תורה לתאנה אלא כל הפירות יש בהם פסולת, תמרים יש בהם גרעינים, ענבים יש בהם חרצנים, רמונים יש בהם קליפין, אבל תאנה כלה יפה לאכול. כך דברי תורה אין בהם פסולת שנאמר כי לא דבר רק הוא מכם.