Even though the battery compartment is separate from the electronics compartment, of necessity the two battery leads must pass through the body via a screw. There is an O-ring to prevent leaks, but if there was salt water in the battery compartment, it creeps down the screw and corrodes it over time. This typically causes the delayed cracking, due to the buildup of corrosion.
Salt water is the culprit -- fresh is not so bad. But you can never be sure. The best fix is to proactively change out the screws and Orings with new ones and really clean the area. This is a job for a tech who knows what they are doing and who has the exact parts.