Loot percentages vary based on your likelihood for victory. This is calculated using the difference between your Town Hall, and your opponent’s.
For example, raiding a village
– with the same TH as you will grant a high percentage of resources
– with a higher TH will give you even more resources
– With a lower TH will yield less loot!
Please check this post on our forums for additional details regarding this feature.