The main reason why lawyers in criminal cases can't tell the contact information of victims' families is to protect privacy and safety.
In criminal proceedings, lawyers, as defenders, need to provide legal aid to defendants and safeguard their legitimate rights and interests. If the lawyer discloses the personal information of the defendant to the victim, it may cause the victim's revenge or other adverse consequences, and it will also pose a threat to the lawyer's own safety.