Basically, it's the next level of "do unto others". To determine whether your action is right or wrong, ask yourself what would happen to society if every person performed that action as a matter of habit.
In small children "theory of mind" develops, the child supposes that perhaps this experience they're having, whatever that is, is also an experience the other people who look like them are having. And this theory works well, you can make useful predictions with it. Because Daddy is like you, and you like apple drink better than pond water, you can surmise correctly that Daddy will prefer the apple drink over the pond water too. Being smacked in the face (e.g. by your own unco-ordinated limbs) hurts, and so it's not a surprise that Daddy doesn't like a smack in the face either.
But the explanatory power of theory of mind is limited if you stop there. I don't like Peanut Butter. But it turns out that other people _do_ like Peanut Butter, their minds are similar but not identical. If I see some bread with Peanut Butter spread on it, to me that bread is ruined, but to someone else that's a delicious snack.
I don't want to marry. So for me a Categorical Imperative forbidding marriage is no problem. But it's clear to me that other people value marriage and so, against my better judgement, it should continue to be permitted. Some people feel marriage should be restricted, that couples ought to be of opposite biological sex, or the same skin colour, or of child-bearing age, or whatever other constraint. I have no dog in that fight but it's simplest if we're to allow something I have no need for, to assume that everybody will avail themselves of this custom only if they value it, and so it may as well be open to everyone until we see some clear evidence of ill-effects.
I am not saying go out and get yourself killed, just that I can see the reasons some people do try to get this info out.
You're mixing reward with outcome. The outcome is that the person was murdered. That's something entirely different from a reward.
This person is dead. We can thus deduce the reward is death. While that is a big reward, it's not one most people want.