Why do USB cables lose the ability to charge quickly over time?

Lightning cables seem very susceptible to corrosion on their contacts which makes me wonder if that might lead to voltage drop