I think they say it because deep down they know God exists
But I'm not joking when I say that some Atheists do invoke God in life-threatening situations, or in times of desperation, I guess they have nothing to lose in moments like that and their sincerity is very high at that point.
