Please answer this

At last,why are we left shifting p by 1 rather we should multiply p by 10 so that number could be reversed and came into the original form.