I would have to ask why the authorities decided to inspect his rectum.
Maybe the phone rang?
Maybe he was fidgeting in a peculiar manner.
Or maybe, given his history, they decided a closer examination was necessary before putting him in *their* jail.