Under US criminal law, defendants can often be found guilty of murder due to participation in a group criminal activity even if they didn't directly attack the victim. For example, if bank robbers kill a security guard the get-away driver will often be charged with murder even if he never physically entered the bank.
Felony murder? I was on the jury of one case. I kinda felt bad for the defendant - he was 18 and some juvenile in his group pulled the trigger. Probably accidentally.
My guess is that if a pair of robbers hit a liquor store and the liquor store clerk killed one of them, the other can be charged with some form of murder.
How far back…well there is a scripture in the Old Testament that essentially says if you are party to a crime then you are just as guilty as the one who committed the crime…so this common law practice actually dates back at least 4000 years. Also Japanese law held the same types of practices for thousands of years and Is m sure many other ancient cultures.