Enviroment Variables have a bunch of uses some of the most common one are the location of a file to import as this usually differs from Dev / test and live enviroments the path / email etc can be set at time of deployement to that enviroment.
There are many other uses, this is just the most common one I have found.
hope it helps.