Answer
George I was the eventual successor to the British throne because he was the closest living relative of Queen Anne, who died childless. Sophia was the Electress of Hanover and the eldest surviving grandchild of James I of England, Anne's grandfather. She was also a granddaughter of Elizabeth of Bohemia, who was the sister of King Charles I of England.