They might have a camera that appears to show you taking something. If you took something, you might be able to return it and not be prosecuted. If you don't return it, they could have you arrested and prosecuted. Even if you can get a not guilty verdict, the arrest will be on your record.