This seems to be something more family orientated. There were malicious witnesses against David who turned his good deeds into evil. He was forlorn and wore sackcloth in mourning for their illness. He fasted and bowed his head in prayer. He grieved as if it was his friend, his brother, or his mother. Somehow someone did not appreciate all his care and mourning.