Apple is slowing down older phones to save battery life and to prevent your iPhone from shutting down.
If your phone draws more power than its battery is capable of, the phone will shut down. Older batteries will also not perform as well as newer batteries.
Apple is offering discounted battery replacement for customers who own an iPhone 6 or later.
While this may give your old phone a boost, it does also encourage you to buy their latest products.