The show has multiple references that if you do good deeds while having a self-interest in mind, you won't get points.
The two biggest examples were:
Eleanor was trying to do good things in the fake Bad Place, but wasn't getting any points. And at some point, they figured out that her motivation is all wrong because the only reason why she does it is to stay from a real Bad Place.
And they referred several times to Tahani's life that she did a lot of charity, but the motives were wrong.
I am curious, why was it different for Doug Forcett? He got something like half a million points (which I assume is really impressive number in the modern world). However, when Michael asks him why he doesn't want to relax a bit and have some fun, Doug replies that he can't risk it. He doesn't want to go to the Bad Place.
And thinking about it, his situation is no different from Eleanor's. Both of them know about the existence of Good Place and Bad Place. Both of them try to do good things to avoid Bad Place. However, Doug somehow was able to accumulate points.