If one takes the time to consider how a hydraulic brake system works, before too long you realize there are all kinds of sources for moisture to reach the brake fluid.
Consider the brake pistons. At least one on each wheel, with many cars having two or four per wheel and some having more. There is a seal on each of those pistons. I'm assuming it is by design that the piston seals allow a small amount of brake fluid to pass by. But regardless of whether it is by design or not, the brake fluid on the outside hydrates, and when you press on the brakes, that piston seal swipes by the hydrated brake fluid. And this occurs every time you press on the brakes. Times the number of pistons in your brake system.
Any belief that the brake fluid reservoir is sealed, is based upon a lack of understanding. I work in an industry where sealed vessels are paramount to the successful functioning of key components of our products. We have a saying that reminds us of reality. There are two kinds of sealed pressure vessels - one that has leaked and one that is currently leaking. Anyone that understands the failure mode of Takata airbags will also understand this principle. And the cap on a brake fluid reservoir is nowhere near as sealed as an airbag inflator.
Moisture gets in brake systems.