usually, in a text, it can be used to show pity for the speaker, the situation or the their party who they are talking about
a: Her father died in a car crashb: that's tragic mtsm