This is used in my textbook without any real explanation. Is this something that follows from Lagrange?
Lagrange: If $H \subseteq G$ is a subgroup of a finite group $G$, then $$|G|=|G/H||H|$$
Other than this it is used several times without reference to anything.
Thanks!
The reason is that:
All cosets are in bijection with $H$, hence they all have the same number of elements, $|H|$;
They make up a partition of $G$,
so you can apply the shepherd's principle.