Those phones had “mysterious” shutdown issues with ~20% battery remaining that started being reported about 6 months after release (when it was still the latest iPhone). Those same issues were somehow fixed with a software update, but not before the shutdowns made a bunch of customers angry.
It’s obvious that Apple simply under-specced the batteries, not that they were trying to make the phone wear out early.