Wine, just like salt, is a flavor enhancer. With the long cooking time, much of the alcohol will cook off/evaporate and leave a wonderful depth of flavor.