Is there tax payable on RIF paid out upon death? If so, why is the amount listed on the T4RIF in box 18 rather than box 16?

I am preparing the tax return for a relative who passed away in 2022.