Ritual (empty or not) is an important aspect of being human. It can be of particular use in trying to get/hold/regain/keep a relationship with whatever Lord/God/Gods/Goddesses that you believe in. Historically this is true. Some of that ritual has been left behind. But many people are now coming up with their own rituals that the see as meaningful to them, or taking up very old rituals and accepting the meaning behind them. One might be the small prayers that a profoundly Jewish person may have at each doorway into their home... and the short prayer that is said as they enter.
Another may be as simple as always saying "I love you" when a member of the family goes out the door. If it takes you out of the mundane for even a moment, then I think a ritual is worthwhile.
Some people have a fear of this, and indeed, an empty ritual is like profanity to me. Most profanity is prayer without meaning, said in anger.
Doing good works can never be wrong, imo. Doing them with ritual, even something so small as a prayer for help or a recognition that the act is to improve humanity's state... well, that, to me, makes it more meaningful. Ritual shows an understanding that there is history behind you.
And THAT is why I think any ideal religion needs ritual.