Why jet engine noise become quieter and smoother with altitude ?

Hello! I think most of you noticed that when gaining altitude, the engine noise in the cabin becomes way smoother and quiter, how do you explain that? Does the engine power vary with the altitude during climb? Does it have to do with the fact that there’s less air as you climb and less transmission of noise? And maybe less friction noise?

Thank you in advance !