It's a way of gauging just how committed a candidate is to the role and the company. When someone's willing to move for the job (whether immediately or down the road), that shows a passion and dedication that other candidates may not have. And it shows you're in it for the long haul.