ratings
There is a metric called Glicko RD (rating deviation). It represents how confident the system is in its estimate of a rating. When players are new or play infrequently the RD is large and this leads to larger rating adjustments. In the example you've given, maybe the opponent was new so had a large RD. The RD might also increase if a player is on a winning or losing run as this would widen a deviation. It is smallest when you play regularly and win and lose, so when your rating is stable. The RD is an adjustment to the rating points awarded, there are other factors such as rating difference which you pointed out.