Got asked about my "job hopping" in an interview

I've changed jobs every two years or so over the past 6 years, to keep moving up and to increase my salary. My experience is extremely good for my profession.

In an interview this week I got asked by a guy who was 50+ why I've changed jobs so often.

😐

I wanted to say "because you mfs don't give raises" but I gave the professional answer lol.