_
is a somewhat special variable name. In the shell, it contains the value of the previously evaluated expression:
>>> 1+2
3
>>> _+4
7
Within scripts, it's commonly used as a throwaway variable, i. e. one that's needed for semantical reasons but that isn't going to be used later. Syntactically, it's just a variable like any other.