What was the underlying reason for president Andrew Johnson being impeached?

Andrew Johnson had been Abraham Lincoln's vice President and he became President only as a result of the assassination of Lincoln. Many people regarded this as a kind of coup d'etat, or illegitimate seizure of power, because Johnson was from the defeated South, and it seemed wrong that a Southerner should gain the Presidency by means of assassination, even though Johnson himself was not the assassin.