Offering 401(k) matching contributions is a benefit that employers may use to attract talented employees. Once an employee is hired, vesting is one way to dangle another carrot in front of them, encouraging them to stay with the company over the long term.