Companies want to know where you see yourself in 5 years because they want to know if their investment in your training will be paid back through a commitment to working for the company. It also helps to indicate if your goals align with the career projection of the role.