姓 composes of a 女 (woman) and 生 (birth). In the past, when China was matriarchal society, surname was given by mother since everyone was bred by mother only. Although now we inherit the surname from our fathers, 姓 is still used to represent the meaning of surname.