Factory resetting generally improves your device performance and in the short term it can be said that it gives you a better version of your android. It clears and removes a few viruses from your device and also removes errors in your device. It improves glitching, hanging, or lagging of your device.