The usual arrangement is for the body of the granny charger to be only a short distance, say 30cms, from the mains plug, because it can carry up to six wires internally, some for the temperature sensor and its output to the charger body. I guess it’s short as it’s probably expensive cable.