Having met a few people like that, I believe they do it because they cannot accept reality—and themselves—as they are. It’s a strange coping strategy of denial that morphs into a self-induced delusion where they hide can from things that are scary or painful. It works, but it comes at a cost.