Because in 99% of the cases and in convention when training networks we use [0, 1] image range, with possible normalization following to make it 0 mean and 1 std. You can write you own transform that does other things if you want to.