In my experience, this is because major iOS upgrades tend to come out at the same time as new phones, and installing one major iOS version as an upgrade over the previous creates issues, especially if you've not set up a phone a new in a few years, whether it's a new phone or not. After installing a major iOS version upgrade, if you erase your phone without restoring the backup, the performance will feel new again, and battery life almost always improves.