Roasting them removes moisture and lightly caramelizes the “meat” of the tomato. The more moisture that is removed the more the flavor is concentrated. This is a perfect way to get tomato flavors into recipes without diluting the other ingredients in the recipe.