fruits are an amazing thing, really.
and I'm not going to get into the whole thing about how trees have sex,
which to be honest, is actually amazing in some species,
where the tree top is female and bottom is male,
so that it doesn't impregnate itself by accident,
and therefore keeps the gene pool healthy.
and some trees develop wings on their seeds (twirly wing seeds) so the seed can grow far from the parent and therefore not be stunted by the parent
fruit bearing trees specifically develop their fruits for the purpose of animals eating the fruit,
and either dropping the seed elsewhere when done,
dropping the fruit and forgetting it and the flesh of the fruit helps nourish the seed as it attempts to grow
or an animal flat out eats it and shits out the seed somewhere else