He isn't talking about mourning a loved one, but mourning your own sin.

We should mourn over the loss of innocence, personal integrity, self-respect.

True joy will not precede the conviction of sin.