Why is the duchess sneaking around in the middle of the night? We know she's somehow a fake duchess, but that ought to make her situation even more delicate, so going in and out like a thief wouldn't be advisable.
Also, ignoring alarms is a sure way to get people killed. It has been a problem since the dawn of time.