You are encountering the Activation Lock for iPhone, iPad, and iPod touch - Apple Support feature or its related service iCloud - Find My - Apple . Activation Lock is designed to prevent anyone else from using an iPhone, iPad, or iPod touch if it's ever lost or stolen. Deactivation requires knowing the Apple ID and password that set the feature, or placing a special request to Apple to reset the device.
Click on this link to learn how to remove Activation Lock --> How to remove Activation Lock - Apple Support
If you do not know the required information and you are not the original owner, get the owner of the account to remove the lock, or return the device for a refund, or recycle the device. The device is otherwise useless to you. If the owner is unknown and has not provided contact information as a message showing in the login screen, there is no way to contact the owner unless the person who gave you the device knows them.
Here are additional resources if you are the original owner or can find the original owner:
Help with a lost Apple ID or password:
• For help with a forgotten Apple ID (this is likely an active email address or one used in the past), click here --> If you forgot your Apple ID email address or phone number - Apple Support
• For help with a forgotten Apple ID password, click here --> If you forgot your Apple ID password - Apple Support