I believe it was specifically that he responded with "you can't fucking ask me that" which sent things down the bad path. They shouldn't have asked him at all (but were probably bored?), but "you can't X" to a cop is usually going to provoke them.
(Also, what was going through their heads when they said this - not that we'll ever know, of course).