We usually erase off the personal data when resell the phone. Wiping data from Android is a good idea as it makes no one can get access to our private data.
Common Ways to Clear History on Android.
You may want to wipe your Android phone from PC to keep your personal information safe and secured, to avoid privacy leak if your phone falls into wrong hands.
Remove Android screen lock and Google FRP lock without password.
Remove Goolge FRP lock/Google account verification
Unlock various screen locks on Android devices
Unlock some Samsung screen lock without data loss