The high sugar content and acidic nature of the wine make it a good compost activator, providing food for beneficial microorganisms and creating a supportive environment for them.
Red wine, in particular, is known to get along really well with beneficial bacteria. Moreover, the presence of yeast in wine can boost composting by adding liquid and nitrogen.