Praying to gods has a correlation with better medical outcomes, thats why they have chapels in hospitals. Same thing with visits from friends and families. Its not like everything can be solved by "advancing" technology.
The article you've linked describes multiple medical benefits of prayer. By "they don't work", do you mean "the observed benefits are explicable without divine intervention"?