There used to be something called 'job loyalty'. As your grandparents about it. I'm retired now but when I was working, through the 70s/80s/90s, there was no real reason to stay at a job more than 5 years. In California, where I worked, if you didn't have five or six jobs on your resume people thought there must be something wrong. In fact I think Silicon Valley benefited greatly from the 'cross-pollenization' of skills. I learned new skills everywhere I worked.
(Now having said that, I visited some foundries and other kinds of machine shops in Chicago and the Twin Cities back in the 80s and found the mood there was totally opposite. Everyone worked for the same place for 30-40 years there!)
Think of yourself 30 or 40 years from now. Think of you having decades more work experience but now being older, not able to work as hard, finding it harder to learn new skills, looking forward to retirement. Your FIRST PRIORITY is to that person, the you of 2050. Most companies no longer have loyalty towards their employees, and if this is the case where you work, your loyalty to your employer is misplaced.
A bigger company might have a better 'career path' for you. If you're the kind that wants to strive to get ahead. In my case, I ran the rat race until I'd had enough of it, then I 'retired' to a smaller company to enjoy the smaller-company corporate culture, but knowing I'd get no more than regular raises as long as I was there, there were no promotions in store for me.