Electromagnetic spectrum question

Hi,

I have a hard time relating both of the following images together.
Since UV have a higher energy level i would have expected the Pfund series to emit UV instead of IR.
In simple terms, what am i not understanding?

Thank you so much!

F2_J.K_8.05.2020_Shashi_D1