When Christians do good deeds, it is because of their thanks to God for His many blessings and the gift of salvation. It is not to win favour with God.
‘Let your light shine before men, that they may see your good deeds and praise your Father in heaven.’ Matthew 5:16