How do Chinese people know if they talking about "she" or "he" when the pronunciation is exactly the same?

汉语中的“他”和“她”发音完全一样,中国人是怎么区分所指对象是男性还是女性的呢?