The discussion identifies two grounds: water removing a state of ritual impurity, or water being used on the body in an act of devotion.
For Abu Hanifa and Abu Yusuf, either ground may be sufficient. Muhammad gives greater weight to the devotional purpose, producing a difference in certain cases where intention is absent.