I've taken the same approach to my own career. Job security comes with being good at what you do (or rather doing what you are good at...) and working hard.
Sometimes I've let the working hard part slip, sometimes that had consequences.
I've changed jobs more often than most would like. But for the most part, I've stayed consistently employed at good pay and doing work I've liked.
Earlier in my career, I changed jobs for resume building, taking lead roles on large projects and picking up experience and skills I thought would benefit me in the long run. Usually it came with a pay raise, almost always long hours, sometime less desirable working conditions.
After a couple decades of that, I'm more interested in working with people I like and respect that treat me well, along with large paychecks.
You perfectly illustrated my point. While “young”, you moved around and obtained a resume and lots of work experience. Now you are stable/happy where you are, what you are doing and your salary. The “youngsters” today probably want the same thing. I don’t see it as being disloyal.. I see it as having ambition/and a career plan.