This meaning refers to compassionate sorrow caused by another person's pain, weakness, or misfortune.
She felt pity for the injured animal.
His story filled us with pity.
This common use expresses disappointment or regret about an event or missed opportunity.
It is a pity that you cannot come.
What a pity the concert was canceled.