The thermodynamic work done by the system is through mechanisms defined by its thermodynamic state variables, for example, its volume V, not through variables that necessarily involve mechanisms in the surroundings. The latter are such as shaft work, and include isochoric work.