Why is my IRA distribution being reported on Line 5 and not on line 4 a and b.

I have pension income ans well as a distribution form an IRA.  Part of the IRA distribution went to me and part was paid directly to charitable organizations.

 

Both my pension income and the IRA distribution was reported  on line 5.   The IRA distribution should show up on line 4 a and b.  Why is it not reported on Line 4 a and b?