Graduate students are paid by the university. Unlike undergraduate student unions, graduate student unions are actual unions in the workers sense. They have the same purpose as any other employee union would: protect the students from arbitrary and capricious changes to working conditions, and to negotiate for better conditions/represent the students in the event of negotiations.