If a person performs all four obligatory acts without intending wudu as worship, Hanafi law regards the ritual purification as valid. In Shafi‘i law, the absence of required intention prevents validity.
The distinction between legal validity and devotional reward explains why the two schools reach different rulings.