https://www.theguardian.com/world/2023/nov/14/the-ghosts-haunting-chinas-cities-death-dying-funerals-superstition
As China urbanises, its ideas about ghosts are transforming. Only in urban and urbanising China are ghosts equated with strangers. In traditional, rural Chinese society, ghosts were often thought of as relatives or kin who had been mistreated in life and not given a proper burial. The whole purpose of a funeral was to make sure that a dead relative became an ancestor instead of a ghost. When a person's social universe is composed almost entirely of family, then both good and evil must be located within the family. In urban settings, these can be separated: family can be imagined as purely good, while evil is located in strangers.