some locking mechanisms have a button you press in addition to turning the key all the way over to release the lock. And if you normally keep your bike in a garage or similar secure location you don't need to lock it so aren't used to what is like to have it locked.
one hand turn the key
other hand feel around for a button or for another piece around the lock that turns.