Why does the illustrator find an extra group?

You see a group that consists of: on the left is a regular rectangle, on the right is a clipping mask, in which the mask is the same rectangle as on the left, and inside the mask are three rectangles (squares): white, above it orange, and above the orange white with a blue border. Simple, right?
The question is equally simple, how many groups are there from a scripting perspective? It would seem that the general group and the clipping group are just two groups. But Illustrator finds three groups.
Let's simplify and ungroup the outer group. Now we have two separate objects: a rectangle on the left and a clipping mask (group) on the right. So there's one group, and Illustrator will agree with us on that.
Question: where does the third group come from in the first case?
