Longitudinal striations and miniscule imperfections in the barrel makes unique marks on the fired bullet.
http://www.despatch.cth.com.au/Misc/...t/forensic.htm
Thats why the Italian mafia used 22LR pistols for liquidations. Once a soft lead bullet had penetrated the melon it was to mangled up to identify to a specific weapon.