When the rams are retracted, the piston rod takes up part of the space that would otherwise be filled with oil. Thus the volume difference.