Observational astrophysics

Why do spectral lines become broader when the emitting gas is hotter, all else being equal?