Original: It is part of the Knight of the Swan tradition.
Simplified: Elsa knows that she is innocent and asks God to be her judge.