Investors of all sizes spent billions of dollars buying homes during the pandemic. At the 2022 peak, they bought more than one in every four single-family homes sold, though more recently their activity has slowed as interest rates rose and supply became tighter.