His mistake was answering the officer's initial questions.
There's a hint of blame-the-victim in that statement. he seemed to be voluntarily proactive (initially) to hasten him being on his way. Right or wrong, police have broad powers of detention even before/without arrest.