Question about Stan manual change point example

Can anyone provide some intuition behind the transformed data block in figure 15.1 of the manual. This is the change point example modeling coal mine disaster rate.

transformed data {
real log_unif;
log_unif = -log(T);

I suspect it is has to do with putting a uniform prior for each possible value of s, but I unclear why it has to be the -log.