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