Money market funds — which invest in low-risk, short-term debt — surged in popularity as the Fed began hiking rates in 2022.