what is the main purpose of fruit pruduction by a plant

Fruit contains the seeds for reproduction of the fruit unless it has been modified to produce fruit with no seeds (seedless oranges and seedless grapes, for example).