Charitable giving declined in 2022 for only the fourth time in the past four decades. Inflation and cost of living are believed to be the key factors behind the drop.