What's the name for this logical fallacy? You think people want to confess because you know people who have. You don't know of many who got away with a crime and didn't confess.
A friend in law school once told me that in the US a deathbed confession is treated as an exception to normal heresay rules, because (i guess ) we think someone dying has no reason to live. Meanwhile in some other countries (india?) deathbed statements are considered less reliable, because the person knows they won't have to face any consequences for lying.