For models assuming an underlying data generating distribution for labels like logistic regression, uses 1/0 because that's the possible range of the Logistic distribution. See Wolfram.
If you were to use let's say Hyperbolic tangent distribution to define your target and model the classification with that link function you would use +1/-1 labels. See Wolfram.