They slowed individual handsets with degraded batteries to prevent resets. They still do. Replacing the battery brought the device back to full speed.
They got flak for not telling the user, so they alert now. All new iPhones have this feature.
Ironically this was actually to extend the life of the device - many people who would have upgraded if their phone was resetting under high load just carried on using it throttled (my wife included).