A lot of the questioning is to test your reactions and see if you're nervous or making something up. If they hear obvious signs of lying such as sweating, stuttering and lack of eye contact, you'll probably get searched or at least sent to secondary.