"Because truffle fungi produce their sexual fruiting bodies under ground, spores cannot be spread by wind and water. Therefore, nearly all truffles depend on mycophagous animal vectors for spore dispersal."
The truffle is full of spores. Because it is underground it can only spread far if something or someone digs it up and tries to eat it.
"When the ascospores are fully developed, the truffle begin to exude volatile compounds that serve to attract animal vectors."
The truffle smells good so something or someone finds it and digs it up.
The trick is that humans only care about a few species of mushrooms as truffles. You spread the spores of one of these good species around the roots of a tree sapling you plant and then you hope that it will establish a good healthy colony. If for any reason some other mushroom species outcompetes your truffle species you won't have any truffles. And it takes multiple years to know if that happened or not. So any experimentation in finding the right method or the right conditions to promote the truffle species and discourage the other species goes at a snail's pace.