AP acts puzzled that a Democrat could lose