Grounding your generator is for safety. Equipment like lights and appliances are built with exposed metal surfaces at ground/neutral potential. On a grounded electrical system, this is safe because the voltage between the soil and these cases is zero. If the power source isn't grounded there is nothing to control the voltage between the soil under your feet and the things that are tied to the generator neutral like metal cases and posts. That can result in a shock hazard.