How iMac was unlocked? but was not my login
iMac 27″, macOS 10.15
iMac 27″, macOS 10.15
The appearance you describe is Recovery mode.
Restart that Mac normally, and you should be greeted with the usual login screen.
How iMac was unlocked? but was not my login