Interesting article:
Why do mafia hit men drop their guns at the scene of a crime?
On Sunday's episode of The Sopranos, the Italians shoot a man they have mistaken for New York boss Phil Leotardo. Later, Bobby "Bacala" Baccalieri is killed at the model-train store. Both times, the killers drop their guns at the scene of the crime. As Clemenza says in The Godfather, "Leave the gun, take the cannoli." How come mafia hit men always drop the guns?
They don't want to be caught with the weapon while fleeing the scene. If they've taken precautions to keep the gun from being traced back to them, it won't be much help to the police. In that case, it's better to leave it for the cops.
The decision is a calculation of probability rather than a question of style. Mobsters aren't the only ones who prefer the cannoli to the Smith & Wesson; it's a move that many professional killers employ when they can, along with ditching the gloves and shirt they wore (which may contain gunshot residue). Only a criminal who is completely confident that his gun can't be traced would abandon the weapon. In this case, his chances of being connected with the weapon are so low that he's more worried about running into law enforcement during the getaway.