But the fact is that Sex and Gender are two different concepts - one, as you point out, is a biological matter having to do with reproduction, and is settled and done, usually, long before the body becomes conscious. Gender, on the other hand, manifests mostly as performance, but nonetheless arises from a deep-seated place in the mind. So if someone says their gender does not match their sex, this is not a difficult concept to hold in one's head.
I don't doubt you've seen people saying horrible things of all kinds on Twitter and Reddit, but understand, those places have nothing to do with the real world. You're here because on some level, you do understand that, and you want better. Welcome.
When people say that their gender doesn't match their sex, they're expressing a rejection of their material existence. These are men who don't want to be men, and women who don't want to be women. I think it's no surprise that many then engage in self-deception, looking for ways to support a belief that they aren't the sex that they actually are.
*gender affirmation
(edit: which is to say, trans people never made any claim to changing anyone's sex)