That’s because in ancient times, a woman had to get married sooner or later. She did not belong to her natal family. Even a girl who died without getting married did not belong to her natal family, so she was not eligible for burial. Into the ancestral grave. The only way to be buried in an ancestral grave is to go through a ghost marriage and then be buried in someone else's ancestral grave. This can be regarded as having a "place to stay" and not even having a place to die. This is actually a manifestation of the lack of status of women in ancient times. It also shows that women have always been just accessories of men, and they have no independence at all.
Families with good family conditions will buy a piece of land not far from their ancestral graves to bury their daughters. This is also a way of saying that they enter the ancestral graves. But this is only not far from the ancestral graves, and it is not considered entering the ancestral graves in the true sense. For example, the Princess Tomb in the Qing Dynasty was where Jiaqing's two daughters were buried. They could not be buried in the imperial mausoleum, nor could they be buried directly in the cemetery of their husband's family, so a specific place was chosen for burial. The folk girls' graves are mostly used to bury unmarried women.
Families with poor conditions were thrown directly into mass graves and became real ghosts. Because their family conditions do not have enough money to buy a piece of land to bury their daughter, and they cannot let their daughter enter the family's ancestral grave, they can only choose this cruel and helpless method to solve their daughter's aftermath.
Some families will choose to have a secret marriage in order to feel at ease, that is, to find a man who is about the same age as their daughter and has died, to have a secret marriage, and then the daughter will go directly to his ancestral grave. However, shadow marriage is actually prohibited because it consumes too much material, manpower, and financial resources, so it is not allowed. However, some people still choose this method to solve their daughter's death in order to feel at ease. In fact, sons and daughters are all our own flesh and blood, so why must women’s status be inferior to men’s? Their status is so humble that they have no real place to stay after they die.