Writing in New Scientist, Debora MacKenzie has an article that is right up my alley: Living in denial: Why sensible people reject the truth.
All denialisms appear to be attempts like this to regain a sense of agency over uncaring nature: blaming autism on vaccines rather than an unknown natural cause, insisting that humans were made by divine plan, rejecting the idea that actions we thought were okay, such as smoking and burning coal, have turned out to be dangerous.
This is not necessarily malicious, or even explicitly anti-science. Indeed, the alternative explanations are usually portrayed as scientific. Nor is it willfully dishonest. It only requires people to think the way most people do: in terms of anecdote, emotion and cognitive short cuts. Denialist explanations may be couched in sciency language, but they rest on anecdotal evidence and the emotional appeal of regaining control.