This provides two separate paths to ground (B can go through its own connection to ground or it can go through the ground of the cable to A and then to A’s ground), and means that current may start flowing in unanticipated ways.