Whilst shopping I have noticed quite a number of products having very weird measurements. for example my jar of peanut butter is 127g, but I can't spot a pattern here.

Is this just a random part of production, or is there some reasoning behind this?