With the master cylinder being the lowest point in the rear brake system, it makes sense that any water is going to collect there and corrode the junk alloy master cylinder body. This is what makes annual fluid flushes mandatory for at least the rear.
I had a reline done with a brass sleeve that should easily outlive even my offspring. There are places that will do stainless sleeves, but IMO that is overkill.