The previous descriptions of how ideal machines work were simplifications and are only approximately true. The discussions of hydraulic and electric motors require some re-interpretation because of the effects of adding the losses to the machine models.
For the hydraulic motor connected to a pump, flow from the pump will equal the flow into the motor. However, actual flows are not the same as the displaced (ideal) flow. The ideal equation will yield too high a motor speed because it