There is a context in which the adage “Do not speak ill of the dead” makes sense.
First, every person who departs the world deserves a dignified send-off, for the simple reason that he or she is a human being. Second, the departed person is a beloved mother, father, brother or sister to someone, and to speak ill of them, especially publicly, would be insensitive to the feelings of their loved ones.