Why did Andrew Jackson Become president in 1865?

That was Andrew JOHNSON, who was VP for Lincoln's second term. After Lincoln died, Johnson became president. JACKSON was elected in 1828 and died in 1845.