Why adding s to the sentence ".. to groups"

Solution 1:

Because group is a noun and as your subject is plural so the noun will be plural too...