Why does the maximum pension income for splitting decrease when I enter a RRSP contribution?

Eligible pension income is $18K. Split is $9K before entering RRSP contribution of $8K, then $6K after entering it.