Even though depreciation is a non-cash expense, it affects the cash balance on the Cash Flow Statement because it is tax-deductible. Taxes are a cash expense, so depreciation affects cash by reducing the amount of taxes you have to pay in a given period.
This reduction in taxable income from the depreciation expense is also referred to as a "tax shield."