A ballast regulates the current to the light. It acts as a dampener. For some lights, if there is no ballast present, connecting to a high-voltage electricity point would allow the current to be drawn in increasing quantities without any level of control. The ballast makes sure the light gets just the right amount of current: not so little that it becomes weak, and not so much that it floods the lamp with current.