The annual average for a 30-year fixed-rate mortgage has remained fairly steady over the last 10 years, but saw a large swing from 2021 to 2022.