Gaining merit will strengthen them to overcome any obstacles or misfortune they are suffering. They intend to gain more merit because they also believe their accumulated merit would help them to be in heaven or a peaceful place after their death. Even more merit they gained would help them to reach nirvana (divine peace beyond this world).