The difference here is that the first signal has an integer number of periods in the DFT window and the second one doesn't. That means for purposes of the DFT, the first signal is periodic and the second one isn't.
Periodic signals have periodic quantization noise. Hence the noise spectrum has spurs: the noise only occurs at multiples of the signal frequency.
For non-periodic signals, the quantization tends to be uniformly distributed and the quantization noise is white, i.e. about equal energy at all frequencies. There are exceptions to this, but we'll ignore this for now.
Note that the right signal has no spurs but the average noise level is higher. The total quantization noise for both signals is roughly the same, they are just differently distributed in frequency.