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