Pine cones are an example of a “fruit” which isn’t edible. It’s still a cluster of seeds which will fall, perhaps roll, and potentially end up far from the tree. Of course, it’s not as effective as a fruit that’s eaten/pooped elsewhere or buried by a squirrel, like a berry or acorn.
But many pine cones only open and “disperse” seeds in conditions such as fire. The seeds aren’t necessarily dispersed and grown while the “parent” is alive, but they’re very successful at recolonizing after fires.
Maple trees have “helicopter” seed pods which fall slowly and can blow further in the wind than if they simply fell.
Overall, trees grow slowly but last a long time, they can be successful doing many things slowly, such as dispersing seeds a smaller distance. Berries and other smaller plants are less likely to survive the winter and reproduce again, so spreading their seeds widely helps ensure their otherwise-uncertain survival.