Not profits but debt. With the ultra-low interest rates of the last ten years, companies could finance bonds at rates just above inflation. However, instead of using those funds to grow the business (e.g. R&D), they simple bought back shares, increasing the price of the stock.