Artificial intelligence is giving tech investors an entirely new reason to pay attention to the Federal Reserve.

For years, megacap tech companies with hefty balance sheets have been able to shrug off rising rates, which tend to weigh more heavily on smaller, less-profitable peers.