While everyone in the kingdom thought that the witch had cursed the Princess because she had locked her with a dragon in a far away tower; the witch thought she was doing her a favor, instead. Because, in that way, she was reassuring that the Princess will only marry with a Prince strong enough and brave enough who would love her enough to go look for her in that tower and fight a dragon for her.
The end.