The gromacs index.ndx file indexes (lists) molecules according to their type, nature, selection, etc. It is important to understand Gromacs before venturing into other tools because it can carry errors.
Normally, group 0 (not to be confused with the number in the sequence of elements, which would be the first) is the system that contains all the atoms of all the molecules in the system. If you check the example, you will see that in that case 1 belongs to the group "Protein" and 13 belongs to "LIG" (or 3-letter code of the ligand). In that case, it can be selected like that, because the receptor and the ligand are different. In other examples, you will see that 3 and 4 are used because the index comes from CHARMM-GUI. In that case, the groups must be created manually, because they are both proteins and are contained in the same group. To do this, a selection command in gmx make_ndx is used to separate them (splitch).
The selection of the groups depends on the system and its composition. Probably, if it is Protein-Ligand, you can select 1 and 13 but do not use gmx_MMPBSA as a black box. It is important to have at least a basic understanding of what it does and why it does it. We recommend you download the examples folder and explore, analyze, and understand them so that you can quickly become an expert in gmx_MMPBSA.