It’s difficult to imagine a modern alloy gear box casing corroding to the point of failure. You’d think the crew chief could be tasked with applying some sort of corrosion protection with each daily inspection.
You're right - probably poor aircraft maintenance practices.
Nobody does aircraft maintenance like the west (US, Brits, Germans, etc)