Used to separate measures (see time signatures below for an explanation of measures). Bar lines are extended to connect the upper and lower staffs of a grand staff.
For more information on the music term "Bar line, barline" check out these other resources: