Roasting the vegetables before adding them to the sauce softens them and also caramelizes the outside. This gives the pasta sauce a sweetness and extra flavor.