Why do women in ancient China need to take their husband’s surname?

Everyone knows that for five thousand years in China, families have been distinguished by surnames. In ancient times, "people with the same surname can get married, but people with the same surname cannot". This is an arbitrary matter for the population to multiply and the family to prosper. A serious and long-term problem. Therefore, in ancient times, women usually took their husband's surname after getting married. If a woman's surname was "Liu" and she married a man whose surname was "Zhang", then she would be "Zhang Liu". In China, the husband's surname is retained, and the husband's surname is added in front. Once the husband's surname is used, he becomes a member of the husband's family.