Under FIBA rules (feel free to heckle now

) if the referee's stop play for any reason that is not caused by the offensive team, the shot clock is to be reset. Some examples are: injury to any official, change of ball due to it deflating, replacing equipment (whistle, hoop etc).
The reasoning is that the offensive team has been inadvertently punished by the stoppage, as they may have had the defense on the "back foot", so they shouldn't be punished further by allowing the defense to reset itself, and by playing with less time on the shot clock.
Personally I think it makes a lot of sense.