Old equipment - in the aircraft and on the ground - could do unpredictable things if the transponder was not set to STBY before changing a code
Out of interest, how old is old? I'm assuming something would be in the manual for the equipment about this, however this is not a document the average pilot is ever likely to get hold of.