Chasam Sofer (here) answers with a pasuk from the haftarah we read today at mincha. Hashem promises to the “sarisim asher yishmeru es shabsosai” a “yad v’shem tov m’banim u’mibanos,” better than any children. Chazal (according to one view) tell us that the mekoshesh who violated Shabbos was Tzelafchad. He did so not for his own benefit, but to show the rest of Klal Yisrael that even though they were punished and would have to wander for 40 years, the mitzvos, especially the mitzvah of shabbos, still needed to be obeyed. Tzelofchad’s actions were actually motivated by a desire to preserve the mitzvah of shabbos, not to desecrate it. Therefor, thetorah of parshas nachalos was given through his daughters as an eternal remembrance for his good deeds.
I thought this Chasam Sofer fits perfectly with a gemara in Sanhedrin (93b) that darshens the same pasuk about Chanaya, Misha’el, and Azarya, and Daniel. The gemara writes:
מאי שם עולם אתן לו אשר לא יכרת אמר ר' תנחום דרש בר קפרא בצפורי זה ספר דניאל שנקרא על שמו
You see from the gemara that having divrei torah transmitted in your name counts as an eternal reward and remembrance. This is exactly what the Chasam Sofer is saying as well – the transmission of parshas nachalos in the name of the Bnos Tzelafchad is the best remembrance Tzelafchad could have.
Parenthetically, my wife observed that in the list of families, the Bnos Tzelafchad are listed as (25:33):
וְשֵׁם בְּנוֹת צְלָפְחָד מַחְלָה וְנֹעָה חָגְלָה מִלְכָּה וְתִרְצָה
Yet, later, in the parsha of nachalos (27:1), they are listed as:
וְאֵלֶּה שְׁמוֹת בְּנֹתָיו מַחְלָה נֹעָה וְחָגְלָה וּמִלְכָּה וְתִרְצָה
Notice the difference of where the "vuv"s that makes the conjunctions are placed. It's a detail, but every kutzo shel yud has meaning. I have no idea why there is such a difference.
Another question from my wife: given that the women did not sin in the cheit hameraglim or the cheir ha'eigel and were not included in the punishment gezeiros for these sins, wouldn't they have far outnumbered the men? I would also add that a large number of females were captured in the war for Midyan as well. Seems like there should have been a major shidduch crisis...