You have to start somewhere, the easiest way is to ban new sales as that is what you can enforce without too much expense (both financial and political). Then as old machines slowly fail, most people will buy new electric ones. And if there are still 100s or 1,000s of people stubbornly using their petrol powered tools, at least there are no 100,000s or 1,000,000s of them.