Variation of reward for good deeds is based on sincerity and following of the Prophet’s guidance. The more a person is sincere to Allah, and the keener he is on following the Prophet (may Allah’s peace and blessings be upon him), the more perfect his worship will be, and consequently his reward will be bigger.
Riyadh Al-Salheen with explanation and benefits