They throttled performance depending on battery capacity, because the alternative was that the battery could not keep up with a sudden spike, powering off completely.
The problem was that they didn’t notify users, and after people in France winning a lawsuit, they now have it opt in I think? Nonetheless, it was a feature made in good faith.