It was accidental evolution. Millions of different fruits evolved with different tastes, but some happened to be sweet.
The sweet ones were able to outcompete the non-sweet fruits because more animals ate the sweet ones, spreading their seeds.
This gave them a huge advantage in reproduction and eventually they became the more dominant fruit tree, and the fact that animals enjoyed them meant they would not die out.
Latest Answers