In my car case it was a know issue of this model and repaired for free within one hour.
And while a degraded battery is nothing that needs to be replaced for free, the manufacturer of the phone probably sunk a lot of time and money into developing a strategy to cope with the phone shutdowns due to a degraded battery. During that process it is hard to imagine that no one ever came up with the notion that maybe it would be a good idea to also notify the user that a serious issue is developing which should be handled some time. After all this is not going to get better since the battery will continue degrading (and probably with increasing rate) if it is not replaced.