Why do rural people burn fireworks when sweeping graves?

This is just a statement, there is no specific reason, there are two main aspects can be understood:

One: comfort yourself that setting off fireworks is a way to show death, pay homage to the dead and express your thoughts;

Two: to outsiders, there are relatives or descendants in this grave, not orphans' graves.