Maybe I was just lucky but I stayed with my last job over 40 years. Retired last summer and a large reason I stayed so long is because I loved my work. So much so that I created a 12 node networked Linux system at home to learn more so I could have more fun at both work and home. The knowledge gained at home did help me get a few better raises though eventually I was promoted to a position not requiring those skills. Now, it remains my main hobby and is the thing helping me enjoy all of this spare time.
Congratulations!! I'm quite happy for you, but I do believe you are definitely and outlier on the current job market of the past years.
Enjoy your retirement, stay active and have fun!!