It is good to make so, because some people have old browsers. In such browsers css variables can not be performed. But css values, such as red, can be performed in all browsers.
Browser executes first line with color: red. If that browser is smart enough to understand css variables, after that executes second line with var(–red-color).