Microscopic origins of shear stress in dense fluid–grain mixtures