Fruits and vegetables can continue to ripen and spoil even after they have been harvested. Which is why it is important to store them the correct way to prevent spoilage.
Shelf life of fruits is milited. Often, we end up either consuming mouldy fruits by mistake or tossing them out if we are smart enough to spot the rotten ones.