Many optimizers (and other algorithms used in compilers) can benefit from some random bits.
Though, of course, in practice you can use pseudo-random bits and fix the seed.
Having a compiler produce different code for the same source is a recipe for "I can't reproduce your bug and can't fix it".
Or unless you iterate over randomized hashtables to produce some output, e.g. function sections in an executable. Though that doesn't change the semantics and is basically rearranging coins in your pocket.