Here's why:
There are ! unique ways the children can be arranged.
Since we don't care about the order of the boys, we divide by the number of ways boys can be arranged, or !.
Similarly we don't care how the girls are arranged, so we divide again by !.
That leaves the number of ways children consisting of boys and girls can be arranged if you all you care about is gender.