I'm not religious but this my interpretation:
I think there are a lot of misconceptions of God, whether u believe in him or not.
It's not about being better than or holier than. U understand nothing u can do will make u 'good' bc u are corrupted w sin in birth until death.
So in understanding that means u willingly follow, practice discipline, have faith and serve even though u know it doesn't mean u deserve or will get good/nice things.
For any man to think he's 'good' in the eyes of God is against God's teaching bc it's prideful and pride is sinful.
Doing good things bc u genuinely have a 'good' heart means u would do it even if it hurts u not bc it makes u feel good or makes others think highly of u.
And being faithful to serving God is more meaningful when u do it when there's no reason to or rather every reason not to. Which is tested through your most difficult trials that we all have to go through time and time again.
We aren't expected to never fall off, it's guaranteed we will bc we are sinners and will sin again. That's why we don't deserve mercy, we are given it by God's grace, which is determined by your 'works' on earth thru free will.
Sorry for the wall of text