The reputation was previously used in place of the thanks feature, but we now have the thanks feature and the reputation feature might be changing. Right now, it's fairly arbitrary.
There are a couple of threads about this though some of the links in them might not work anymore. They should still answer any Q you might have about the feature.