I would not know if everybody relates to yoga this way, but that is how it was conceptualised. That the diseases of the mind were primary diseases (according to Yoga Vashishtha) and the body's diseases were secondary. Which may explain why the body is susceptible to cure faster today with modern day medicine than the mind!
That all aspects of yoga -- meditation, pranayama practices, asanas even were to clear the debris left by the mind's hyperactivity. Perhaps most rituals in any movement has the same value. Even in the armies around the world rituals may have this purpose. For those who connect with yoga as a cleansing ritual, it is difficult to miss a day's practice. To miss practice would be to feel unclean.
A clean mind is where the divine lives. More than in the external places of worship. Yoga internalises the idea of the divine and constantly requires you to be pure of purpose.
Here is a story I had once tracked, for a column I wrote, on the connection between practice and cleanliness of the mind space.
This story is credited to Sri Ramkrishna Paramahamsa. He told the story of a young man called Padmalochan who found a decrepit temple. Bats had started living in it, there was not even an idol in it. Padmalochan blew his conch, trying to get people interested in the temple. One wise man stepped up to him and said, "You blow the conch. But in this temple how can the deity reside where eleven bats have constantly defecated." Sri Ramkrishna's stories were often simple accounts with a parallel meaning. Here the eleven bats alludes to the eleven indriyas which are divided into two -- jnana and karma indriyas -- five sense organs, five organs of action, and the mind itself. Here he is implying that these indriyas, by their constant outward movements, defile the mind space. This mind space must be pure and involuted or inward-directed before it can be consecrated as a temple or seat for the ultimate divine. Yoga says that these outward bound indriyas must first be reined in by the purificatory yogic kriyas, which in turn purify the nadis, the inner energy channels. The body has to be purified, so the mind can be lead into purity.