And that is indeed voice leading. The idea of using common notes to go from one chord to another (in this case, an A on the G string - which is in both chords) - as opposed to playing a Dm bar chord on the 5th fret and then a baby Am on the 1st & 2nd frets (plus open strings). Or worse, a Dm bar...