I like to think that Charles started watching Doctor Who as soon as it started in 1963. And when he saw the Doctor regenerate for the first time he was like:

And that’s where he got the idea from to transfer his consciousness into a different body, should he ever kick the bucket.
#headcanon ACCEPTED
This is, obviously, what happened.
HEADCANON ACCEPTED