The sword didn't belong to "her" elder brother, it belonged to "the" elder brother in the original story, that she replaced as the elder sister. That's the whole point of the story, she want to get back all that would have been hers if she had been born male like in the original story and didn't get because she reincarnated as a woman instead.