As MikeAdams says, the starch is breaking down as the fruit ripens. This doesn't alter the calorific value of the fruit but it can change the amount of energy available to the human body because starch is inefficiently digested.
Someone might correct me on this, but the main digestion of starch into useable sugars begins in the mouth with the enzyme amylase. However, an acid environment (as present in fruit) suppresses this reaction. As far as I know there are no enzymes specific to starch digestion in the stomach or gut.