Simples, I am Sherlock Holmes AICMFP
It's something I have done with cars a couple of times over the years. Brake pads are low so pop them out, squeeze back the caliper pistons to make room for the meaty new pads plus a couple of mm working space.... Bingo, brake fluid is leaking out of the filler cap and running down the servo and bulkhead. This is due to the fluid being topped up between pad changes in a car but on a bike it may just be down to fine tolerances/small capacities. I'd take a wild stab and guess maybe the OP was working on the bike upside down? The filler plug was probably never tight and until it was put under some pressure or the bike turned over it didn't matter. The fluid from the caliper has to go somewhere when you fit new pads.