Being able to "charge onsite" is a minor advantage, if any at all. They get to charge for cars brought back not full, and either they're active enough that they have on-site refueling (delivered by a gas truck) or they're inactive enough that sending the new guy over to the gas station isn't a major issue.
Considering what they charge you for fuel, they make money on that.
Hertz charges for an "empty" battery. I highly doubt they're losing money on recharges.