I've been thinking that rituals are important in dedicating full attention to an act, which in turn plays a role in to what extent we perceive it as meaningful.

A second dimension is the distinction between religious/cultural rituals and biological rituals (Yuval Noah Harari: e.g., the ritual of a first kiss).