It is a "segaki" ceremony, the goal is to provide spiritual and physical nourishment to hungry ghosts, the spirits of people who passed away and are trapped by greed in a world where hunger cannot be satisfied. More can be found by searching for the term "segaki".