I'm betting the fat in the milk reacted with the NaOH, but another possible reason why it was thick is that it might have been extra cool.
Your lye concentration was 27% if the liquid had been 100% water. Your solution was probably a tiny bit more concentrated since you used milk instead. A 28% to 30% NaOH solution will start to freeze at 32F / 0C give or take a bit. Slightly above its freezing point, the lye solution will be thick and syrupy. Obviously by the time it warms up to normal room temps, the solution is more like water.
Not sure how cold your lye solution was when you returned, but if it was pretty chilly, the temperature could also have contributed to the solution being thick.
Think of putting honey in the fridge -- it gets thicker and a lot harder to pour. Same thing happens with concentrated NaOH solutions like we use for soap making.
***
Here's a related tip, although a little off the OPs main topic --
For those who make their masterbatch at 50% NaOH concentration, you should be aware this even more concentrated solution will freeze at a LOT higher temperature -- about 55F / 13C.
If you let a 50% NaOH solution get that cold, a hard layer of solid NaOH will form in the bottom of your container. The solidified NaOH behaves more like
rock crystal candy than water ice -- it takes time and effort to get this layer re-dissolved, even after the solution warms back to normal room temp.
The solution will be very thick, like cold honey, as the temp drops below about 65F / 18C. You won't have solid NaOH to deal with, but it is hard to pour and measure accurately.
I recommend keeping 50% masterbatch lye at 65F or warmer to avoid all this trouble.