I think many people have no idea what to write or say in difficult, upsetting, or tragic situations. They do their best, may not fully understand the importance of certain details, but just want to be supportive and say something “nice”. People often miss the mark, but I like to assume they mean well.