The principle of karma entered into religious life as a way for ensuring a better life after death.
We have seen that the ancient Chinese were already interested in lavish funerals to provide the deceased with all the necessary comforts in the afterlife.