While Gabriella is a main character in the first two High School Musical films, she graduates and leaves for Stanford University at the end of High School Musical 2.
This sets the stage for the third movie, which focuses on the remaining Wildcats' senior year and their preparations for graduation and the future.