The full story is that replacing the battery can restore the speed:

“…the good news is, if you replace your battery, the iPhone will detect that the battery can handle processing peaks again and you’ll see an instant boost in speed.

ARTICLE