Since I personally don't believe our "spirit" or "soul" is any one specific gender and that gender is a manifestation of our physical biology, the whys are rather easily answered for me given the current state of research into why we are trans.
Of course, those that believe otherwise will feel otherwise. Given that this is a metaphysical question, I'm not sure there's a right or wrong answer.