This passage shows the clash of David's private grief and public duty. Every grieving person knows what this is like. Your heart is breaking, but other people need you.