Shock waves are common in astrophysics because often a wave passes from a region of higher density to one of lower density. Because the speed of sound goes down as density decreases, eventually the speed of sound can be exceeded and a shock can form. Shock waves lead to disruption and large heating of the material that they pass through.