Maria understood that it was wrong that time and so she had to do it over again: and this time she got the prayer-book.
Maria herself seems a bit naive as well. It looks like (more or less) that she does what she is told with almost a childlike simplicity.