Environment variables are set to allow access to command line tools and allow other tools to more easily interact with the SDK. For example, with Java on Windows, if the environment variable is not set to PATH, running javac is much more cumbersome, because you need to enter the full path to the command every time:
C:> \jdk<version>\bin\javac MyClass.java
Java ; . , , . Path?, , .
Java , (, Microsoft). , Sun/Oracle, - .