Gasoline engines require electricity to function. When a magnetic surface, on the flywheel, passes the magneto it creates high voltage electrical current that makes its way to the spark plug which in turn ignites the fuel-air mixture inside the cylinder.
Imagine the world without electricity