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