Over time, Apple got strict about replacing their Lightning charging cable and wired EarPods (headphones). They would regularly wear out for me.
In earlier iPhone generations, they would replace your EarPod headphones without a hassle (or wait). Later on (as Apple got more popular and Apple store genius bar lines grew longer), you had to make a reservation and they would only consider replacing it after checking the cable's (discrete) serial number.