I always talked with the people I managed about their career goals, and always tried to adapt their job to be a closer fit to those goals. When I couldn't do that I would acknowledge that and even help them find a different job that did fit.
How else can we expect to get the best out of people?