I think it's quite obvious Kobe is gunning for the all-time scoring list's #1 spot now, and the Lakers agree to overpay him only to cement his place in history.
If he retires at the end of his deal he will be the longest-tenured player with the same team (20 years to Stockton's 19, the current record).