In the other 6 groups there are 21 students in each of the 6 groups.

*Does this sentence make sense.

It would make sense if you omit the first five words.

There are 21 students in each of the other 6 groups.

Yes, this sentence makes sense. It states that there are 6 other groups and in each of those groups, there are 21 students.