Yu wanting to publicly confess it was part of it. But there's a high chance that if Yu did this privately then she would've been locked up and resubjected to the curse before anyone was the wiser. By making it such a spectacle the castle needed to give a different explaination.
Explaing that...