In the Hanafi Madhhab, rinsing the mouth and the nose are two of the three fara'id (obligatory elements) of ghusl, the third being having water passed on the whole body. Without any of these three elements, a ghusl won't be valid. While during wudu', rinsing the mouth is a sunnah element, not a fard or wajib one.