This is a very common argument that comes from a misconception of what theists argue. There's a difference between knowing what's good or bad, and doing it. What theists argue is not that only who believes in God can do something good. They argue all human beings know something good or bad because God imbued humans that ability, regardless of what they believe in, or whether they want to do it or not.
Interestingly, Christianity is unique regarding this matter. While most, if not all, religions say you have to earn it in order to go to the desirable afterlife (heaven/paradise/etc.), Christianity says no one, whatever good things they do, can earn it. Only because of God's grace they can be saved. Also, we love because God loved us first. We do good things not for earning an eternal life, but for an act of gratitude that God has saved us.