From what I understand, is that you probably sold your iPhone 7 to someone... and all the sudden it got activation lock.
When you sell you iPhone, you should sign out and remove this phone from your iCloud account. If you can, you can just go into your iCloud account and remove this device.