Grouping as it sounds refers to a situation where you have to arrange your data in hierarchy. For example if you want to return employees per department then you have to group them by department.
This will be useful where you need to show, for exampe, the department name and a list of employees found in that department and so on.