Here's the math behind the ratings:
FAQ
One main factor is the difference in ratings between you and your opponent. The system expects you to beat players with lower ratings and you don't get a lot of points for doing that, but it does reward you for knocking off a much higher rated player.