Why does a Prayer becomes Formality?

Why does a Prayer becomes Formality? It's a common situation both for believers and people who follow the spiritual path, when at some point a prayer or a spiritual practice is already becoming a formality. Why is this happening? Why does a Prayer becomes Formality? Why does a Prayer becomes Formality? Why does a Prayer becomes Formality?