But while depreciation is an expense, it is not a cash expense.
Your profit was $30K ($100K - $50K - $20K), so that cash comes in. In the cash flow, however, you are essentially spinning this around to focus on the cash side. The table at the top is a very simplified income statement, so the depreciation expenses would reduce your operating profit. I was momentarily taken aback as well, and then suddenly remembered that it was a cash flow statement, not and income statement I was looking at.