Actually, there is evidence that one's internal sense of one's gender is hard wired in the brain. There have been several studies that found that certain brain structures of trans people were more similar to the sex/gender they identify with rather than their birth sex. In other words, some people are born trans or outside of the binary.