When kidneys fail, waste accumulates in the body. Dialysis becomes necessary to clean the blood and maintain balance by removing excess fluids and waste.