Why does Appium IOS automation every so often requires rebooting of ios devices or it will fail to install the app or fail to run the tests?

Why does Appium IOS automation every so often requires rebooting of ios devices or it will fail to install the app or fail to run the tests? Has anyone encountered this issue and how did you resolve it?
Thanks.