 The more sugar is produced in the grape over the period of time of ripening, you have more sugar in the first place that can be either fermented into alcohol, so you have a higher alcohol level, or you can bring to a certain alcohol level, stop the fermentation, and you would have more residual sugar left, making the wine even sweeter. So yeah, riper grapes.