Ozma absorbs Shadow damage if you do not complete the Friendly Monsters sidequest prior to battling him.