I think the dog misunderstood the leaning down as a threat of dominancy and bit her maybe out of fear/confusion.