Why do fruits have to ripen?
Mature, viable seeds have to form in most fruits, which involves the maturation of embryonic tissue. That can take a little time, from just a few days in some weed species to months and perhaps longer in some fruits like pineapple.