דבר ברור וגלוי שהטומאות והטהרות גזירות הכתוב הן ואינן מדברים שדעתו של אדם מכרעתו והרי הן מכלל החוקים וכן הטבילה מן הטומאות מכלל החוקים הוא שאין הטומאה טיט או צואה שתעבור במים אלא גזירת הכתוב היא והדבר תלוי בכוונת הלב ולפיכך אמרו חכמים טבל ולא הוחזק כאילו לא טבל ואעפ"כ רמז יש בדבר כשם שהמכוין לבו לטהר כיון שטבל טהור ואף על פי שלא נתחדש בגופו דבר כך המכוין לבו לטהר נפשו מטומאות הנפשות שהן מחשבות האון ודעות הרעות כיון שהסכים בלבו לפרוש מאותן העצות והביא נפשו במי הדעת טהור הרי הוא אומר וזרקתי עליכם מים טהורים וטהרתם מכל טומאותיכם ומכל גלוליכם אטהר אתכם השם ברחמיו הרבים מכל חטא עון ואשמה יטהרנו אמן:
It is obviously clear that the laws concerning defilements and purities are biblical decrees, and not things which the human mind can determine; they are classified as divine statutes. So too, immersion as a means of ridding oneself from defilement is included among the divine statutes. Defilement is not mud or filth to be removed with water, but is a matter of biblical decree; it depends on the heart's intent. Accordingly, the sages have declared: If a man immersed himself, but without a definite purpose in view, it is as though he had not immersed himself at all. Nevertheless, there is some ethical allusion to this: just as one who sets his mind on becoming clean becomes clean as soon as he has immersed himself, even though nothing new is produced in his physical being, so one who sets his mind on purifying himself from all the spiritual defilements, namely wrongful thoughts and evil traits, becomes clean as soon as he made up his mind to abstain from those notions, and brought his soul into the waters of reason. Indeed, Scripture declares: "I will pour clean water over you, and you shall be clean; from all your impurities and idolatries I will cleanse you" (Ezekiel 36:25). [Mikvaos 11-12]
Why doesn't the Rambam mention Teshuva from bad DEEDS and only talks abt. Teshuva from bad thoughts and middos???