Because I can't resist going off topic, does anyone know the evolutionary advantages of various properties of mushrooms?
Sorry for the late answer but for an answer to your question one can write a book...
What exactly "properties"?
If you mean the toxicity of some species: what is toxic to the humans is not toxic for some animals (and opposite!). The Dead Cap (Amanita phalloides) is highly toxic (up to deadly) for us but for example squirrels (and many others!) enjoy them, same for many other toxic mushrooms that I know. And I'm giving an example with only the mammals (insects, slugs - they use to eat toxic mushrooms for breakfast!). They don't need us to spread their spores!
Some other properties (here for simplicity I will sample just what Oyster mushrooms can do...).
1. Ability to degrade the lignin from the lignocellulose is giving them food source - easily consuming the cellulose (and that is sugar! - yes, the paper that we use is form of sugar!).
2. Powerful enzymatic system that is able to break many other molecules - food source.
3. Did you know they have a micro-structures that can capture nematodes (tiny worms) and utilize them for a food?
And there are so many other features like an antibiotics production, symbiotic properties e.t.c. all of them correlated with the ability to survive and evolve.
Other features are just a byproduct of their metabolism - like the anti-cancer properties of some fungi that we can use but can't explain what advantage that fungi have from it.