The ability to play chords gives the guitar its flexibility to be a solo or an accompaniment instrument. You see, anyone can learn some simple chords and start strumming along to their favorite songs.
Compared to the other instruments like the violin or flute, the guitar is far more versatile in terms of its usage. Also, because of its relatively low cost, the guitar is one of the most popular musical instrument for people to get started in learning music.