Quick Answer
One cup does not always equal the same grams because a cup measures volume, not weight. Different ingredients fill that same cup space in different ways, so the weight changes from one ingredient to another.
A cup of flour, a cup of sugar, and a cup of butter may all fill the same container, but they do not weigh the same. Density, ingredient texture, moisture, packing style, and cup standard all affect the final gram result.