The path line is added so you can run the compiler from any directory without having to type the full path to the executable.
The other line is just a system variable that the compiler needs to work I think.