At equal aptitude, employees with a higher engagement with the company are more valuable.
They have finite resources, and obviously those resources will be allocated in a way that benefits the company the most.
So yeah, you should expect your coworkers to get a bigger raise, and you should be fine with it. They won't love you all equally, it's a company.