I don't think a tractor is necessary a bad use case for batteries. They just need battery packs which can do the equivalent of a days work. Electric motors are almost better suited to the use case due to the torque. I'm sure some of the US mega farms have tractors which run all night (and the emissions of those are the least of their environmental issues) but this isn't common elsewhere.
I believe the problem is that a tractor runs for much of the workday at a very high load. Pulling a plough is constant hard work, not like a car that is only using a lot of power while accellerating hard. If you had your foot to the floor in a Tesla constantly you would run your battery flat in a lot less than 8 hours. I have read that the batteries for this application would therefore be infeasibly large.
Yes your example is extremely niche. It only works where you are going to work on one specific application for many years in the same place. It doesn't generalise to building a house, a supermarket or a road. It doesn't generalise to ploughing the Mid-West.
Even in your example it only works if you are taking all of the material to one destination, like an ore refinery. If it was road stone, the rock would get loaded onto a diesel truck for the final part of the journey. So again, the tractor, the excavator on a job site, the lorry, will all stay on diesel or hydrogen ICE
Imagine a tractor in a field. What is the solution for that?