Girls were considered an expense to their birth families, since they only became valuable when they married and bore sons for their new families.
I feel as if the girls were being treated poorly only because the Chinese society was run by men rather than nobles. Once they become of age then they have their purpose of serving for their husbands and children.