Twilight Sparkle never meant to do anything wrong. But then again, all magical mistakes are caused by ponies who have no idea what happened. That's why they're called mistakes. The only difference with Twilight's mistake is that it accidentally sort of turned her into Princess Celestia. And now she doesn't know how to change back.