A personal matter
Prayer can make you feel good inside.
It is useful for believers as it allows for an external comfort for ones problems. Tests of prayer for specific outcomes have never proven better than random. So it is not used medically but can be used personally.