Once again... Ewww.
She either is related to the necromancer in some way and wants to stop him, wants revenge for turning her into what she is now, could have been saved by the royal family from extinction for whatever reason and now wants to repay them by saving the princess / stopping the...