With 3rd party batteries it can't do this, so it doesn't (I think, will admit I'm not entirely sure exactly how iOS deals with 3rd party batteries it can't determine the status of), and if you replaced it with an official part then it would have been in good condition, so regardless which road you took, it's possible that you went from a state where the OS was clocking down, to one where it wasn't anymore.