To rifle something is to steal it. The word also originally had the sense of “to search thoroughly,” often with intent to steal. But if you are casually flipping through some papers, you riffle through them.