When you connect the ground and the neutral, the current travels on the neutral and ground to return to the main panel, during an excessive current flow, current will flow through all items in the subpanel, including the enclosures, grounding rods, and wires, which can be dangerous.