Discrete spectra are usually associated with systems that are bound in some sense (mathematically, confined to a compact space). The position and momentum operators have continuous spectra in an infinite domain, but a discrete (quantized) spectrum in a compact domain and the same properties of spectra hold for angular momentum, Hamiltonians and other operators of quantum systems.