Leasing Costs and AFFO

Are not leasing costs ( including leasing agent commissions) an expense on the income statement of a REIT?

Why does one need to deduct it from FFO to obtain AFFO when it would apparently result in subtracting the expense twice?