"Fruit" has a precise botanical meaning, being a part that developed from the ovary of a flowering plant.
The definition of "fruit" in botany emphasizes its origin from the flower's ovary and its role in seed dispersal.