Your detergent gets neutralised
Calcium and magnesium bind to detergent molecules and form soap scum - an insoluble compound that doesn't clean. It clings to fabric fibres, the drum, the seals. You need 30-50% more detergent just to match what soft water would do. Even then, residue remains.

