I think she was depressed. It happens... Animal have feeling and of course dogs have. If she can be happy sometimes, why wont she be sad?
If nothing was changed, and you feel like it happened without ant reason, and it happens a few times again - it may be a neurological problem.