For the same reason the electric mail trucks are a good idea. You can probably expect UPS and FedEx to start replacing their fleets over time as the existing vehicles age out, now that all electric vans are starting to become available.
I'd say 95% of Amazon delivery vehicles I see in NYC are the electric type. Amazon are known to be really concerned with the bottom-line efficiency, so I suppose it must make clear economic sense.