The free Fill / Swap / Key is added once 2/4/6 challenges you took part in have ended.

So it's possible that in some cases (such as your 7th challenge) to not receive additional resources.

Rewards received at the end of a challenge are not determined by your final ranking, only by how many challenges you have completed.