Why do many fruit trees have five-petaled flowers?
Peach, apricot, plum, pear, apple, cherry trees are plants of the same family, Rosaceae, so they are closely related. They share many more aspects than the five petals. In fact, other plants in this family, and even many other dicots have five petal, simply because their share a common ancestry.