No no no, Apple slows down your old iphone (intentionally!) so the old battery will not suddenly die and make the phone shut off without warning. Malicious code slow-down is just a side benefit.
Still no word on why iPhone batteries suddenly shut off...