A tree produces seeds to reproduce. These seeds often have a protective case that is generally known as the fruit. Trees that have protected seeds are known as Angiosperms. Trees that produce seeds with no protection are known as Gymnosperms.
There are many different shapes and sizes of fruit. This is due to complex evolutionary paths that have formed between plants and animals.
Seeds are spread by either wind or by animals. If a tree wants to use an animal to spread its seeds, then the fruit will have to be attractive to the intended animal.
Many seeds will not germinate unless they have passed through an animal. This weakens the seed case allowing germination and is known as scarification.