Each star you get multiplies your damage (or at least increases it by a whole lot) once you pass through the last barrier into the rock section of every stage.