Because newer batteries are not degrading as fast due to better thermal and load management. Because newer cars use newer chemistries that are less prone to degradation.
Moreover, just like some cars are good enough for people now, the cars with some degraded batteries will be good enough for some second hand buyers.