My one mare will do that if she thinks the bucket isn't clean enough. So I wash her bucket a lot and she doesn't do it. Moving the bucket can sometimes work too.