All of the barre chords we’ve learned have a root on the fifth and sixth strings. The name of the chord is the note you start on. That’s why it’s so important to learn the notes on both strings.
In fact, at this point they’re the most important strings to know the notes of. Once you know this, you’ll be able to form any chord on either string.