Until a few years ago merchants were not allowed to charge credit card fees. In that case, online fees make a legally-allowable proxy for credit card surcharges.