Here is a link that can explain it better than I can it’s a pretty cool phenomenon that happens
https://www.weather.gov/source/zhu/ZHU_Training_Page/Miscellaneous/gravity_wave/gravity_wave.html#:~:text=A gravity wave is nothing,region of very stable air.