If your employer said to your colleague 'look bronxcoder asked for and received a raise and you both work equally hard so you will get the raise too' - would you be annoyed or happy ?
I think is much more ethical to treat people like this but maybe your colleague isn't doing such a good job as you.