Why are some fruits tasty and juicy?

It is the nature's reproductive trick. 'The nature' hopes you or an animal will find the tasty fruit, eat it, and then throw the pit or the part with seeds very far away, allowing new offspring in a new place. Unfortunately, due to genetic engineering, most seedless fruit on the market nowadays lost this purpose, and they are tasty because people like them this way.