Seeds do germinate inside the fruit, or the parent plant - this condition is called vivipary (live birth), it is uncommon but it does happen usually in fruits with high moisture content such as apple, pear, peach, lemons or tomatoes.
As they get the favorable conditions to germinate inside there. Same in the Jack fruits and some other viviparous fruits. I think in case preservation in may maximize. You can avoid this if you eat the fruit just after being matured and not to make much delay.
Viviparous sprouting has been considered to result from excess nitrate nitrogen or from depleted potassium Many researchers believe that the reason for the emergence of seeds within the soft fruits is due to the increase in the amount of nitrogen in the form of nitrate and potassium depletion within the fruit, while others believe that viviparous sprouting in muskmelon might be triggered by low levels of ABA in the fruit tissues around the placenta.
Vivipary is a physiological event , however if you look at the seedlings within the fruit you can see that they are green, why they are green without any light in the closed fruits?
Seeds do germinate inside the fruit or the parent plant, this condition is called vivipary (live birth) it is uncommon but it does happen usually in fruits with high moisture content such as apple, pear, peach, lemons or tomatoes. In ripe fruits, the levels of ABA reduce which leads to over ripening and breaking seed dormancy. The water content of the fruit facilitates germination, sometimes these germinated seeds can reach the seedling stage before drying.