Garbage trucks start and stop frequently, which is a good use case for an EV or hybrid drivetrain. EVs and hybrids benefit from regenerative braking, as the energy typically converted to heat by conventional brakes is instead sent back to the battery. While not nearly 100% efficient, this is a big piece of the mileage gain seen by hybrids.I don't see how that's comparable, it's not like they stuck a plow on the front of a Tesla Model 3 and tried to do it, they actually used an EV that are designed to replace a comparable class of HD vehicle.
Snow plows need to push heavy snow on a near-constant basis, which takes lots of energy and is not an application where regenerative braking would be nearly as beneficial.
The above is the same reason there is a difference in practicality between using EVs for urban delivery vs. inter-state OTR trucking. They're both delivery trucks - one use case suits the technology as it exists today, while the other doesn't.