importance of earthing a rack battery and its cabinet
If you do connect, say the negative terminal of the battery to the case, and ground the case, you''ve now made a second electrical connection between your battery and the inverter, which could bypass your fuses/breakers.