The answer of Cecily to "Ernest" asking her to marry him is: She says yes because they’re already engaged.
At that moment she explains how she has created this fictional relationship with "Ernest" with love letter an engagement a break up and a reconciliation,so in her mind, she was already engaged with him.