Petrol generators are used to produce electricity by converting the energy from burning petrol into electrical energy. They are commonly used as backup power during outages, for powering tools and equipment in locations without grid electricity, and for various recreational and outdoor activities.