People have no idea what is going on in someone elses life! And I think its always said with the implication that someone is being a miserable bugger!
Someone said it to DH today as we were paying for petrol. DH politely informed him that that his mother had just pasted away and that we were on our way to the hospital!!