A form repeated on purpose so meaning can gather in it. What makes it a ritual is that the doing matters as much as the outcome.
Latin ritus (a religious observance, a custom), source of ritualis (pertaining to rite); a ritual has always been a form repeated because the repeating itself was understood to matter.
A form repeated on purpose until meaning gathers inside it — the doing counted as much as whatever it produces.