As we see, the logistic regression discriminates between the majority of the examples by assigning extreme probabilities (0 and 1).
there are some examples which are extremely borderline, and thus it does not generalize well on the test set.