Core Meaning
The reward is presented as a direct recompense tied to prior conduct.
The phrase جَزَاءً بِمَا كَانُوا يَعْمَلُونَ means reward or recompense as a result of what they used to do. The emphasis is not on an isolated action, but on a pattern of deeds that preceded this reward.