Layoffs happened because companies realised they overhired during pandemic and needed a ramp-off to fire people without having their stocks tanks as they always did during mass layoffs, and AI narrative came handy.
People got bored with crypto and NFT and NVIDIA suddenly had a nard time selling GPUS, and AI narrative came handy.