A group of men are riding a moving walkway.
A group of women are baking in a kitchen.
In sentence 1 it is a group of men riding a moving walkway while in sentence 2 it is a group of women baking in the kitchen.
A group of women are not a group of men.  Riding a moving walkway is not baking in a kitchen.
A group of men cannot be a group of women.