Ancient people were superstitious and believed that ancestral graves were the key to the prosperity of future generations, so they paid special attention to the identity of those who entered the graves. Unfortunately, if you are a eunuch or an executioner, even if the court pays you, you can't enter the ancestral grave. Investigate its reason, nothing more than since ancient times, I feel that eunuchs, as eunuchs, lack of health, which is ominous, not to mention that eunuchs have no queen, and there is no reason to go to the grave. The executioner is too bloody because the yin is heavy after death. The superstitious ancients thought that heavy yin would eliminate yang. In this case, it is easy to bring bad feng shui to the whole family.
In addition to the above categories, many occupations classified as inferior in ancient times are not allowed to enter the ancestral graves. For example, Jianghu artists, because performing for a long time is for fun, is an insult to their families, and naturally they can't enter. This is like a fortune teller, or a Taoist priest, because his observation of celestial phenomena all his life will bring bad influence to the descendants of the family. In short, to put it simply, at that time, the ancients felt that these occupations could not raise their heads to make a facade in the future, and basically could not go to the ancestral graves. So this may also be the main reason why many children in ancient ordinary families are proud of their careers and honest all their lives.
Finally, it should be mentioned that in ancient times, unmarried women or people who died unexpectedly were not allowed to enter the tomb except for some occupations. Especially unmarried women, it was thought in ancient times that women should go to the grave of their husbands, even if they were unmarried all their lives, they did not belong to their own families. So we need unmarried women. In the end, I can only be buried in other places at home, and I can't sleep with my parents and elders. This inherent prejudice may be a unique sadness in ancient times.