The oil does three things, 1) it adds flavor and 2) it helps the vegetables crisp better while roasting, and 3) adding a fat like oil helps you better absorb the fat soluble vitamins in the vegetables.