that is because they have followed a way that angered allah and have been averse to his good pleasure. so he reduced all their works to nought.
ذلك بأنهم اتبعوا ما أسخط الله وكرهوا رضوانه فأحبط أعمالهم