Don't ducks do this when they're nervous or stressed? That's what I've always noticed with mine.
Has anything changed recently in the environment? And is she comfortable with you e.g. she wouldnt be getting nervous around you, she seems to still do it even when you're not around?