It's one of the first questions in assessing whether you are a smuggler/sex tourist/terrorist/criminal. Also, it's a question they often know the answer to because they have your airline booking records in front of them, so it's an honesty test also.