The Shanghai party chairman (and its always a man) is pretty influential and has a good chance of scoring a high-level national role after their stint. Also as the richest city with the most resources, Shanghai is often delegated national tasks...you shouldn't think of it at the local/state/national government separation that exists in the USA.