The D minor arpeggio uses 3 notes from the D minor scale. The first note D, the flat third note F, and the fifth note A. These same 3 notes create the D major chord or triad when played in unison.
The red dots of the diagram represent the root notes.