Fruits are usually rich in organic acids notably malic, citric and tartric, and of course their balance with ions is what determines the pH from a physico-chemicla point of view. How this balance is controled (biologically) is another issue. Organic acid contents decrease upon maturation and storage. But not necessarily pH.