When a company buys something that lasts for years, like a building or a rack of servers, the cash leaves at once. But profit doesn't take the whole hit that year. The cost is spread out over the years the thing is used.
So in a year of heavy building, profit can look calm while cash pours out. Read only profit and you'll miss it.